Decision Shapes
Conditionals in Frends processes.
Decision shapes can be used in both BPMN and Frends to create conditional paths in the Processes. Of the various shapes available in BPMN, Frends utilises two: Exclusive Decision and Inclusive Decision.

Exclusive Decision is the standard if-else-statement from general programming. A single condition is given, and it has to be either true or false, to choose a path from the two available.
For Inclusive Decision, each path is given a condition. Execution can follow only one path in Process, or split into multiple paths if multiple conditions are true. It's also possible that none of the conditions are fulfilled, making the Process skip the paths altogether, using an implicit "no action" path to the point where the paths converge again.
Exclusive Decision
Exclusive Decision shape is used to make an alternative path in Frends Process, using a single condition. Similar to if-else-statement in common programming languages, either path will be entered and executed depending if the statement results in true or false.
In Frends Processes and BPMN, the shape consists of the gateway shape, as well as two connected sequence flows. Either one of the two arrows will be marked as default branch, which denotes the path to take when the expression of the decision results in false, while the non-default branch will be entered, if the condition is true. Frends automatically augments these branches with Yes and No display names, corresponding to true and fales evaluation, giving easy visual cue to which path will be taken.

Inclusive Decision
Inclusive Decision shape can be used to create complex set of rules and multiple branches in a Process, where each branch will have its own condition, which if evaluated to true, will be executed. Unlike Exclusive Decision, Inclusive Decision allows executing more than one path, as long as the conditions evaluate to true.
A branch in Inclusive Decision can be marked as default branch, which will be taken if none of the conditions is fulfilled. The default branch is not mandatory in this case, and an implicit default branch of no action will be used, if none of the branches are executed.

Last updated
Was this helpful?