![]() ![]() I agree that a simple decision node is much clearer to read than a conditional node box, because to have 'test' and 'body' in two stacked compartments, visibly interrupting the control flow (connectors!), lets one stumble. My interpretation of that would be that the test (and any tests on predecessorClauses) would then act as a guard on that flow. It's also possible to have a control flow directly from the outside into a body. I assume you then want to specify an else body in the second body section.Add an action out an output pin with the value true for the second test.In the properties of the conditional node, create a second clause.In the properties of the conditional node, set that output pin as the "decider" of the first clause.Change the decision node into an action placing the value of NOT(actual position = next position) onto an output pin. ![]() Move the control flow from your decision to a new initial node inside the body (removing the guard).Move the target for the control flow from your message directly to the conditional node.This ensures that at least one body will always be executed for the ConditionalNode.Īlterations to your model that I would make for (my interpretation of) conformance) are: The body section for such a Clause will be enabled if and only if no other body section in the ConditionalNode is enabled. Quote: An “else” Clause is a Clause that is a successor to all other clauses in the ConditionalNode and whose test section always results in true. (test+body) So an if-else needs to be one clause with a condition, and a second (successorClause) where the condition is always true. The UML specification clearly defines a conditional node as a collection of ordered clauses. (The decision is what is driving it, not the conditional node) In your example, the conditional node may as well not exist. Qwerty - This is at least mostly a valid activity diagram. The following is based on a reasonable ability to read and understand the UML specification and knowledge of EA. WARNING - This is outside of the scope of my personal usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |