A conditional Sequence Flow is a Sequence Flow that includes a condition. The condition determines whether the flow can be followed when the process reaches a decision point.
Conditional Sequence Flows allow process routing to be controlled by business data, user input, or process variables. Instead of always following the same path, the process evaluates the condition and follows the flow only when the condition evaluates to true.
Conditional Sequence Flows can be configured only on Sequence Flows that originate from an Exclusive Gateway or an Inclusive Gateway.
When the process reaches one of these gateways, Studio Modeler evaluates the conditions configured on the outgoing Sequence Flows:
- An Exclusive Gateway selects a single path based on the evaluated conditions.
- An Inclusive Gateway selects all paths whose conditions evaluate to true.
To create a conditional Sequence Flow, connect a Sequence Flow to an Exclusive Gateway or Inclusive Gateway, select the Sequence Flow, and define a condition in the flow properties.
The following expression evaluates the approved attribute of the content process variable:
${content.approved == false}
The Sequence Flow is followed when the value of content.approved is false.
The following expression evaluates a numeric process variable:
${amount > 500}
The Sequence Flow is followed when the value of the amount process variable is greater than 500.