Retrieving the Gateway Type of an Activity
Interface
Activity
defines an Enumeration type for provided gateway types and methods to retrieve the join
and split gateway type for an activity.
Gateway Type Enumeration
The gateway type enumeration contains the following entries:
public enum GatewayType
{
And,
Or,
Xor
}
They have the following meaning:
- AND:
the activity will be executed only after all
incoming transitions have been followed. After completion of the activity,
all outgoing transitions will be followed.
- OR:
the activity will be executed only after all
possible incoming transitions have been followed. After completion of the activity,
all outgoing transitions having conditions that evaluates to true will be followed.
- XOR:
the activity will be executed for each
incoming transition. After completion of the activity, the first outgoing transition
having condition that evaluates to true will be followed.
Getting the Flow Join Type of the Activity
The following method gets the flow join type of the activity:
GatewayType getJoinType();
The method returns null if there is no join.
Getting the Flow Split Type of the Activity
Use the following method to get the flow split type of the activity:
GatewayType getSplitType();
The method returns null if there is no split.