Skip to main content

Inclusive Decision

The "switch statement".

Ossi Galkin avatar
Written by Ossi Galkin
Updated over 2 years ago

An Inclusive Decision is a conditional gateway and used when there's multiple execution paths that can be taken. The Inclusive Decision does not contain an expression, instead every outgoing conditional branch contains it's own expression that has to evaluate to true in order for the path to be taken.

All branches of an Inclusive Decision element must join at the same element. It's not possible to return within an Inclusive Decision branch.

The return value of an Inclusive Decision is a dictionary containing the name of branches taken, and the last return value of the branch.

The order which the Inclusive Decision branches are executed can not be guaranteed. In case one branch depends on the work of another branch, then that work should be done prior to the Inclusive Decision.

The Inclusive Decision element has the option of a Default branch, just like the Exclusive Decision element. The default branch does not contain an expression, it is always executed. There can only be one Default branch per Inclusive Decision element.

In the following illustration green line shows which condition branches would be taken in this process. Each branch is executed before the "Continue" Task is executed.
​

Did this answer your question?