Reputation: 2756
I'm learning Activity diagram in UML and now I'm confused with the following diagram for representing procedures when calling a pizza.
I think a merge node should be added before the join node because if not, the join node will wait forever. Is that correct? Thank you.
Upvotes: 5
Views: 6048
Reputation: 13740
I think you are right.
There should be a merge node merging the two flows coming from the decision
right after Ask for toppings
and a merge node to merge the two flows that have been split by the decision
right after Deliver Pizza
A join node will only continue if it gets a token from all incoming flows, which will never happen if those flows are mutually exclusive because of a decision earlier on.
Upvotes: 4