Let's say I have a decision node. I want the output of that decision node to be the input of another decision node, without having to create another action in the middle. Is it possible to do that in UML?
Asked
Active
Viewed 369 times
2
-
See also https://stackoverflow.com/questions/39557631/how-to-design-decision-after-decision-diamond-in-uml – qwerty_so Jul 29 '22 at 08:17
1 Answers
3
In short
Yes, this is possible.
What does it mean?
There are two kind of flows in an activity diagram:
- control flows: the arrow is more or less answering the question "what's next?".
- object flows: the "what's next" is related to objects passed along the arrow.
The rule for a decision node, is that if the primary incoming edge is a control flow, all the outgoing edges shall be control flows. Conversely, if the primary incoming edge is an object flow, all the outgoing edges shall be object flows.
In this regard, it is important to keep in mind that a decision node is not an activity that creates an output; It just routes the incoming control flow tokens or objects to the right branch.
So you can definitively take the output of a first decision node as input for the second decision node. The only constraint is that the incoming flow of the second node is of the same kind as for the first node.

Christophe
- 68,716
- 7
- 72
- 138