Conditional Sequence Flow

A sequence flow connector out of an activity may be marked as conditional, meaning it is enabled only if its attached data condition is true. A sequence flow out of an Exclusive Gateway or Inclusive Gateway is always conditional, but carries no visual marker.

Condition Type

The Change Shape action on a sequence flow out of an activity allows you to define the type of the condition, either Conditional, marked with a diamond shape on the tail, Default, with a slash across the sequence flow, or No condition, with no visual marker. Default flow is enabled when no other sequence flow out of the activity or gateway is enabled.

condition type 2

The conditional marker only applies to the Sequence Flow shape out of an activity. A sequence flow out of an event may not be conditional, and a sequence flow out of a gateway does not display the diamond shape.

condition type 1

Condition

The Attributes/Condition context menu action on a sequence flow lets you define the data condition as a FEEL Boolean expression of process variables.

condition

It is possible to edit multiple conditions from the same activity or gateway at once too from the Attributes/Conditions context menu of the sequence flow source. This will open the following dialog. Untitled sequence flow will be identified by their target.

conditions 1

You can change the type of a sequence flow by using the drop-down menu on the left.

conditions 2
  • Changing a sequence flow from "Conditional" to "No Condition" will remove the condition

  • Only one sequence flow might be use as default. If you assign a new default, any other sequence flow marked as default will be changed to "No Condition".

You can rename sequence flow by clicking on their name.

conditions 3

The "Clear all" button at the bottom will remove all conditions on sequence flows. The default sequence flow will not be changed.