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}