Working with Transitions
Transitions are used to connect two activities to represent the flow of process execution from one activity to the other.
Adding a Transition
Configuring a Transition
After creating a transition specify the configuration information in the General tab of the Properties view:
- Label: Add a label for the transition that will be available in the diagram. This label can be changed later.
- Fill Color: Select Color for the transition from the basic colors or define a custom color. Color coding helps you distinguish among different transitions based on the conditions that are defined for them. The default color for Error is red, while the default color for other transition types is black.
- Condition Type: Select the type of the condition for the selected transition: Success, Success with condition, Success with no matching condition, and Error.
Take this transition unconditionally. If the activity completes successfully, always transition to the activity the transition points to. This is the default condition for transitions.
- Success with Condition
Specify a custom condition using XPath. If the activity completes successfully, and the condition evaluates to true, take the transition to the pointed-to activity.
- Success with no Matching Condition
Take this transition when the activity completes successfully but only if no other transitions are taken. This is useful when multiple transitions with conditions are drawn to other activities. This condition type can be used to handle any cases not handled by the conditions on the other transitions.
Take this transition if there is an error during the activity processing.
Error transitions are taken if there is an error during the processing of an activity or group. When an activity or group throws an error or fault, none of the success conditions are taken; only the error transition is executed. An error transition can be added to process starter activities, signal-in activities, regular activities, and groups.