This example shows a method for defining a routing expressions based on the value of a specific attachment.
Since it can be difficult to enter the library or object store name and the document ID string in a routing expression, you can define an attachment as usual for the document to be reviewed in the workflow, and define a second attachment with the document you want to test for. In the routing expressions, you test if the value of the first attachment equals the value of the test attachment.
In the following example, if the document assigned to SalaryAttachment is the ExecutiveSalaryPolicy, the work is routed to the Review Exec Salary step. Otherwise, if any other document is assigned to SalaryAttachment, the work is routed to the Review Salary step.
In the Workflow Properties
![]() |
In the Routing expressions:
|
TIP This same technique can be used to test the value of a workflow group in a routing expression. For example, given workflow groups group1 and group2, use the syntax:
(group1[1] = group2[1])