This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TaskCleanupConfig> | |
<cronExpression>0 0 0/4 * * ?</cronExpression> | |
<statuses>COMPLETED,OBSOLETE,EXITED</statuses> | |
</TaskCleanupConfig> |
HumanTask engine uses quartz-scheduler for cron jobs. Refer [1] to declare cron expressions format. In above example, Cron scheduler will trigger TaskCleanup task every Four Hours, to remove COMPLETED, OBSOLETE, EXITED from the database.
[1] -http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger
No comments:
Post a Comment