One example of how to use a DPA could be to remove expired work items from a flow.
Set an expiration period at a particular activity.
Select the Send Work Item option on the Expiration tab of the activity’s Properties dialog box. Refer to Setting an Expiration Period for more information.
Place the DPA directly after the activity.
In the Rule Properties dialog, type the following rule:
Field name:expired
Value:‘false’
This simple rule tells the DPA to look in the work item to see if the expired property is set to false. This indicates that the work item did not expire, so the DPA sends the work item to the delivery activity.
Click OK.
Open the Rule Properties dialog again and enter an Otherwise rule to tell the DPA what action to take if the conditions of the simple rule are not met.
The Otherwise rule tells the DPA to send work items to the approval activity if the work items do not meet the simple rule’s conditions. Therefore, the DPA must send work items with the expired property set to “true” to the approval activity.