UML,merge "decision node" and "merge node"

3.9k Views Asked by At

In UML,is it legal to use merge node at the same time as merge node and decision node?It seems like this:

enter image description here

I think it may help to avoid complex diagrams.If that is not possible,why it is illegal?

2

There are 2 best solutions below

0
xmojmr On BEST ANSWER

Yes, it is legal

Evidence:

  1. chapter "Merge and decision combined" in uml-diagrams.org: UML Activity Diagrams Reference
  2. "Figure 15.34 Combined MergeNode/DecisionNode notation" in www.omg.org/spec/UML/2.5/Beta2
  3. picture "Decision node and merge node used together, sharing the same symbol" in "Figure 12.76 - Decision node notation" in www.omg.org/spec/UML/2.4.1/Superstructure
0
BobRodes On

Your notation is correct as xmojmr says. However, if you are thinking that it is the same thing as putting a join bar between your nodes and the decision diamond, and therefore represents a simplification, there's a rather subtle difference that you need to be aware of. In your notation, one of the nodes can enter into the decision process before the other activity is completed. If you have a join bar between the nodes and the decision diamond, both activities have to complete before either of them can enter the decision.

So you'll want to be aware that they are not exactly the same.