Task Engine 10.11 | Task Engine Webhelp | webMethods Task Engine User's Guide | 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}