Decision

d_decision

A Decision is an element of an Activity diagram or Interaction Overview diagram that indicates a point of conditional progression: if a condition is true, then processing continues one way; if not, then another.

This can also be used as a Merge node in that multiple alternative flows can be merged (but not synchronized) to form one flow. The following examples show both of these modes of using the decision element.

Used as a decision:

Activity - Decision

See UML Superstructure Specification, v2.1.1, figure 12.77, p. 363.

Used as a merge:

Activity - Merge

See UML Superstructure Specification, v2.1.1, figure 12.106, p. 388.

Note:

Moving a diagram generally does not affect the location of elements in packages. If you move a diagram out of one package into another, all the elements in the diagram remain in the original package. However, Decision elements are used only within one diagram, have no meaning outside that diagram, and are never re-used in any other diagram. Therefore, if you move a diagram containing these elements, they are moved to the new parent package with the diagram.

Toolbox Icon

e_Decision

OMG UML Specification

The OMG UML specification (UML Superstructure Specification, v2.1.1, p. 361 (Decision symbol)) states:

A decision node is a control node that chooses between outgoing flows. A decision node has one incoming edge and multiple outgoing activity edges.

The OMG UML specification (UML Superstructure Specification, v2.1.1, p. 387 (Merge symbol)) also states:

A merge node is a control node that brings together multiple alternate flows. It is not used to synchronize concurrent flows but to accept one among several alternate flows... A merge node has multiple incoming edges and a single outgoing edge.