Conditions

Conditions are specified on transitions to determine whether to take the transition to the next activity or not. When a transition is created, you are presented with the transition dialog. The following figure illustrates the transition dialog.

The transition dialog

The transition dialog allows you to specify a label, description, line type, and background color for the transition. You can also specify a condition type for the transition. The following table describes each condition type.

Condition Type

Description

Success

Take this transition unconditionally. That is, always transition to the activity the transition points to, if the activity completes successfully.

This is the default condition for transitions.

Success with condition

Specify a custom condition using XPath. If the activity completes successfully, and the condition you create evaluates to true, the transition is taken to the activity it points to.

You can type in an XPath condition, and you can use the XPath formula builder to drag and drop XPath expressions and data into the condition. For more information about specifying XPath conditions and using the XPath formula builder, see XPath.

Success if 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.

Error

Take this transition if there is an error during processing of the activity.

For more information on error handling in process definitions, see Error Handling.

When a transition is created, the default condition type is Success. If a condition other than Success is specified, it is displayed on the transition line in the process definition if a label is not specified in the Label field.

Note: There can be only one Error and one Success if no matching condition transition out of each activity.