webMethods Task Engine 10.2 | Task Expression Reference | About Global Rule Expressions | Example Global Rule - Expire Task
 
Example Global Rule - Expire Task
This example rule places a task in Expired status when the task's expiration date and time are reached (if specified). You can specify a rule attribute to define how often the rule is evaluated, for example, once an hour.
Condition expression:
#{currentTask.taskInfo.status} == "active" &&
#{currentTask.taskInfo.expireDate} > #{System.currentDateTime}
Result expression:
#{currentTask.taskInfo.status} = "expired"; #{currentTask.applyChanges}

Copyright © 2007-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release