Show Table of Contents
A.12. Connecting objects
A.12.1. Connecting Objects
Connecting object connect two elements. There are two main types of Connecting object:
- Sequence Flow, which connect Flow elements of a Process and define the flow of the execution (transport the token from one element to another)
- Association Flow, which connect any Process elements but have no execution semantics
A.12.2. Connecting Objects types
A.12.2.1. Sequence Flow
A Sequence Flow represents the transition between two Flow elements: it establishes an oriented relationship between Activities, Events, and Gateways and defines their execution order.
Properties
- Condition Expression
- A condition that needs to be true to allow the workflow to take the Sequence FlowIf a Sequence Flow has a Gateway element as its source, you need to define a Conditional Expression, which is evaluated before the Sequence Flow is taken. If false, the workflow attempts to switch to another Sequence Flow. If true, the Sequence Flow is taken.When defining the condition in Java, make sure to return a boolean value:
return <expression resolving to boolean>;
- Condition Expression Language
- You can use either Java or Drools to define the Condition Expression.
Note
When defining a Condition Expression, make sure to call process and global variables. You can also call the
kcontext variable, which holds the Process instance information.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.