Hi,
For purging stale workflow items that are older than 2 days, what workflowStatus should be used?
Would "RUNNING" purge stale workflows too?
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" scheduledpurge.name="RUNNING Workflow Purge" scheduledpurge.workflowStatus="RUNNING" scheduledpurge.modelIds="" scheduledpurge.cron="0 30 1 1/1 * ?" scheduledpurge.daysold="{Long}2"/>
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hello,
Yes, stale workflows are in a running state. This is a little confusing, the basic idea is that the workflow has not finished, and the workflow expects that a Sling Job is going to finish executing the workflow, but that job cannot be found in the system. Your purge configuration looks correct, but of course both stale and "normally" running workflows will be purged.
Hope this helps,
Will
Views
Replies
Total Likes
Hello,
Yes, stale workflows are in a running state. This is a little confusing, the basic idea is that the workflow has not finished, and the workflow expects that a Sling Job is going to finish executing the workflow, but that job cannot be found in the system. Your purge configuration looks correct, but of course both stale and "normally" running workflows will be purged.
Hope this helps,
Will
Views
Replies
Total Likes