ACS Commons Workflow Purge | Community
Skip to main content
RonnieForum
Level 2
Aug 31, 2020 11:47 PM UTC
Solved

ACS Commons Workflow Purge

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Sep 1, 2020 2:01 PM UTC

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

 

21 replies

shelly-goel
Employee
Apr 23, 2021 5:45 AM UTC

@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"

Translate
Employee
Dec 16, 2022 9:07 AM UTC

@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,

Translate
RonnieForum
Level 2
Apr 22, 2021 12:40 AM UTC

@vijayalakshmi_s @kautuk_sahni

 

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

Translate
Vijayalakshmi_S
Level 10
Apr 22, 2021 2:57 PM UTC
You mean to have a track of purged workflow instances?
Translate
RonnieForum
Level 2
Feb 12, 2021 5:34 AM UTC

@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. 

Translate
Vijayalakshmi_S
Level 10
Feb 12, 2021 9:50 PM UTC
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.
Translate
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Sep 1, 2020 2:01 PM UTC

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

 

Translate
RonnieForum
Level 2
Sep 4, 2020 2:28 AM UTC
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 ?
Translate