Sun Identity Manager Deployment Reference

Workflow Transition Conditions

When defining a workflow process, you must specify the rules by which control passes from one workflow activity to another. A path between two activities is called a transition. A rule that governs the use of the transition is called a transition condition.

For example, consider the following activity definition:

<Activity name=’Check Results’>
   <Transition to=’Log Errors’>
      <gt> <ref>ERROR_COUNT</ref> <i>0</i> </gt>
   <Transition to=’end’/>

This activity defines two distinct transitions to separate activities: an activity named Log Errors and another named end. When workflow processes this activity, it will take the first transition for which the transition condition returns true.

In this example, the first transition has a condition that tests the value of the variable ERROR_COUNT to see if it is greater than zero. That transition is taken only if there is a positive error count. The second transition has no condition, and consequently will always be taken if the first transition condition is false.