Integrate Software AG Products Using Digital Event Services 10.5 | Integrate Software AG Products Using Digital Event Services | 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}

Copyright © 2019 | 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.