Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 7

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.

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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