Software AG Products 10.7 | Administering and Monitoring Business Processes | Task Engine User’s Guide | Archiving Tasks | Configuring Task Archiving | Example: Task Archiving Configuration
 
Example: Task Archiving Configuration
The following example shows how to configure the task archiving rule using the Task Archiving Configuration page in My webMethods and how the rule affects task instances in the system.
Assume that the following instances are available in the Task Engine runtime:
Task instance ID
Task created date
Task completed date
4679
July 15th 2018
August 15th 2018
1346
May 4th 2018
May 24th 2018
1234
July 15th 2019
N/A
8585
December 20th 2017
January 5th 2018
For Archiving Age, specify:
Field name
Field value
Years
1
Months
0
Days
1
For Archiving Status, specify Completed.
This configuration creates a rule that archives task instances one year and one day after the instances reach status Completed. If you trigger the rule manually on July 15th 2019, it calculates the archiving age of the task, which is one year and one day, and archives the task data for all instances that reached status completed at least one year and one day ago, which are instances with IDs 1346 and 8585 from the table above.