For purging stale workflows, what value should be used for scheduledpurge.workflowStatus? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

For purging stale workflows, what value should be used for scheduledpurge.workflowStatus?

  • October 16, 2015
  • 1 reply
  • 758 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by WillMc1

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

1 reply

WillMc1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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