ACS Commons Workflow Purge | Community
Skip to main content
RonnieForum
Level 2
August 31, 2020
Solved

ACS Commons Workflow Purge

  • August 31, 2020
  • 4 replies
  • 5997 views

I am trying to setup an OSGi config for workflow purge activities as mentioned in 

https://adobe-consulting-services.github.io/acs-aem-commons/features/workflow-remover/index.html

 

How do I setup the OSGi configuration such that it purges workflow instances which are in completed state for more than 60 days. workflow.older-than property does not seem to work like that but it takes specific date as input. 

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 Vijayalakshmi_S

Hi @ronnieforum,

If you are looking for purge based on days old, you can make use of OOB Workflow Purge

Tools -> Operations -> Maintenance -> Weekly Maintenance window -> Workflow Purge -> Configure

 

4 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
September 1, 2020

Hi @ronnieforum,

If you are looking for purge based on days old, you can make use of OOB Workflow Purge

Tools -> Operations -> Maintenance -> Weekly Maintenance window -> Workflow Purge -> Configure

 

RonnieForum
Level 2
September 4, 2020
Thanks @vijayalakshmi_s. However, how do I make the Workflow Purge task under Maintenance code driven ? I can make OSGi config code driven but would need to add the Workflow Purge Task manually to all the environments till production ?
RonnieForum
Level 2
February 12, 2021

@vijayalakshmi_s I am using OOTB workflow purge as you suggested. However, I am seeing that there is already an existing scheduler which looks for all workflow instances in completed state for all models which are 30 days old. My configuration looks for specific models and which are 60 days old. 

 

From logs I can see that the other existing scheduler executes always. How do I make the Maintenance weekly scheduler to use my custom config rather than the existing one. 

Vijayalakshmi_S
Level 10
February 12, 2021
As it is a factory config, it will execute all instances of purge configuration. Can you check the available instances of purge configuration in OSGI configuration console and confirm your custom entry is available as part of the same.
RonnieForum
Level 2
April 22, 2021

@vijayalakshmi_s @kautuk_sahni

 

Is it possible to have the workflow instances records after they are purged for audit purpose ? 

RonnieForum
Level 2
April 23, 2021

No, the workflow instance itself as in its history of steps, any metadata etc. 

shelly-goel
Adobe Employee
Adobe Employee
April 23, 2021

@ronnieforum  Instead of using workflow remover, you can leverage workflow purge oob for your purpose

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/re-acs-commons-workflow-purge/qaq-p/404924/comment-id/88516#M88516

here you will provide days in configurations "scheduledpurge.daysold"

Adobe Employee
December 16, 2022

@vijayalakshmi_s  @ronnieforum  @shelly-goel  Added to the above discussion , i have a query like we have included ACS AEM Commons in our project and started using Renovator MCP tool. Also we have a requirement of purging OOTB long running workflow instances. Tried to utilize the Workflow Remover MCP tool, but not able to configure anything on the process. Do we need to have any config on top of having Workflow Remover MCP tool? please suggest.

 

Thanks,