A.10. Connecting objects

A.10.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.10.2. Connecting Objects types

A.10.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 Flow
If 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.