Routes are links between Actions and Tasks to build relation within process diagram.
You can draw multiple routes from single action to multiple tasks to split workflow in more than one branches. If no route found or all routes are invalid workflow is automatically terminates.
For a route you can configure following properties from context menu:
...
Validation Rule
Validation script rule to allow from route. If not specified route always valid.
You can draw more than one route to different tasks or same task and control workflow direction.
If no valid route found workflow is automatically terminatesspecifies the route is valid as next task in processes. Rule content can be a Decision Table or scripting expression. Route is assumed as valid if not any condition is defined.
Sample Validation Rule
Validate By Data Model
Following rule allows route, only if total amount is greater than 100 $
Code Block | ||
---|---|---|
| ||
$Xml.EvaluateNumber('TotalAmount') > 100; |
...
Route Validation with a Decision Table
Following decision table specifies the route is valid if form field "Department" is set to "Sales" or "Accounting" value. All other values are invalidates the route.
Route Validation with Expression
Validation rule can also be written as expression. Expression language specifies the how content is interpreted.
If FEEL expression is preferred expression can be specified as;
Same expression also can be written as javascript expression as following;