Routing expression example

This example shows use of both field values and responses, and AND and OR operators in creating the condition expression for each route. It also shows an "else" route that is set to true.

In the following example of a workflow for processing a request for reimbursement, there is one data field, Cost, and three responses in the Eval step for indicating the department: Admin, Finance, Development.

  • If the cost of the item is less than or equal to $2000, and the department is Admin or Finance, the invoice is routed to the Admin department accounts payable.
  • If the cost is <= $3000 and the department is Development, the invoice is routed to the Development department accounts payable.
  • Otherwise, if neither of the previous conditions is true, the invoice is routed to the Review step. The author specifies that the workflow takes the route of the first true condition. Note that the route Over limit must be last in the list.
Routing expression Examples
Multiple routes

Route Pay: Cost<=2000 and (ANY(Admin) or ANY(Finance)

Route To Dev: Cost<=3000 and ANY(Development)

Route Over limit: Always true

TIP: If there is no route with an expression that evaluates to "true", the workflow will stop.