diff --git a/org.modeldriven.alf/src/org/modeldriven/alf/fuml/mapping/statements/NonFinalClauseMapping.java b/org.modeldriven.alf/src/org/modeldriven/alf/fuml/mapping/statements/NonFinalClauseMapping.java index 7ce8cea02..49832505c 100644 --- a/org.modeldriven.alf/src/org/modeldriven/alf/fuml/mapping/statements/NonFinalClauseMapping.java +++ b/org.modeldriven.alf/src/org/modeldriven/alf/fuml/mapping/statements/NonFinalClauseMapping.java @@ -113,7 +113,8 @@ public NonFinalClause getNonFinalClause() { } public static Clause createClause( - Collection testElements, ActivityNode decider, + Collection testElements, + ActivityNode decider, Collection bodyElements, Map bodyAssignments, List assignmentsAfter, @@ -121,7 +122,13 @@ public static Clause createClause( FumlMapping parentMapping) throws MappingError { Clause clause = parentMapping.create(Clause.class); - if (testElements.size() == 1 && + if (decider == null) { + ValueSpecificationAction valueAction = parentMapping.createActivityGraph(). + addBooleanValueSpecificationAction(false); + clause.addTest(valueAction); + modelElements.add(valueAction); + decider = valueAction.getResult(); + } else if (testElements.size() == 1 && testElements.toArray()[0] instanceof ExecutableNode && decider instanceof OutputPin) { modelElements.addAll(testElements);