Skip to content

Commit

Permalink
#65 and #265
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Sep 10, 2024
1 parent a85c592 commit 04ab6b7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1331,10 +1331,12 @@ private void executeRule(String indent, TransformContext context, StructureMap m
for (StructureMapGroupRuleComponent childrule : rule.getRule()) {
executeRule(indent + " ", context, map, v, group, childrule, false);
}
// matchbox patch #265 for simple rules
} else if (rule.hasDependent() && !checkisSimple(rule)) {
for (StructureMapGroupRuleDependentComponent dependent : rule.getDependent()) {
executeDependency(indent + " ", context, map, v, group, dependent);
}
// matchbox patch #265 for simple rules
} else if (checkisSimple(rule) || (rule.getSource().size() == 1 && rule.getSourceFirstRep().hasVariable() && rule.getTarget().size() == 1 && rule.getTargetFirstRep().hasVariable() && rule.getTargetFirstRep().getTransform() == StructureMapTransform.CREATE && !rule.getTargetFirstRep().hasParameter())) {
// simple inferred, map by type
if (debug) {
Expand Down

0 comments on commit 04ab6b7

Please sign in to comment.