umlactivity-diagram

Activity diagram. Is that correct way to define multiple selection?


Is that correct way to define multiple selection? When I want to define selections like in menu? can decision node have many outputs? like this?


Solution

  • Yes, you can have any number of outgoing flows. But note, that the label of a decision should not be an action and that each outgoing flow should have a guard condition. The common part of all guards may be used as a decision label.

    activity diagram