Running Business Processes and Composite Applications 10.4 | Running Business Processes and Composite Applications | webMethods Task Engine User’s Guide | Task Expression Reference | About Global Rule Expressions | Expressions for Default Global Rules | Delete a Task Rule
 
Delete a Task Rule
This rule deletes a task in Completed, Cancelled, Expired, or Error status after a specified period of time defined by the keepDays parameter. The rule evaluates the keepDays value based on the time since the task was last modified. This rule is evaluated once per day. The default value for keepDays is 30.
The condition #{currentTaskExtended.processArchived} specifies that the task is allowed to be deleted if the business process owning a task is archived. This condition checks the Process Audit database schema for the presence of the process that owns the task.
Condition expression:
(["completed", "cancelled", "expired", "error"] contains
#{currentTask.taskInfo.status}) && (#{currentTaskExtended.processArchived})
&& keepDays
Result expression:
#{currentTask.deleteTask}

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.
Innovation Release