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.
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @RonnieForum,
Sorry, missed this thread.
Purge configuration can be set up as OSGI config and that can be part of code base. As it is a factory config, you can create config in the name of PID with identifier.
This task is already part of Weekly Maintenance Window OOB - You can check this at Tools -> Operations -> Maintenance -> Weekly Maintenance Task -> Workflow Purge (Will display the execution status of last executed run with date and when it will be next executed)
Explicit execution outside this window can be triggered by means of "Run" option on the card display (as you hover)
Views
Replies
Total Likes
@Vijayalakshmi_S: I got the point around OSGi config . My question was around how to create the workflow purge task under weekly maintenance. Currently one of the lower environment shows below setup in my case. There is no item. How do I add Workflow Purge item here via code so that I don't have to manually add them in each environments.
Views
Replies
Total Likes
Hi @RonnieForum,
It should be available OOB. Could you please let know the AEM instance version you are using.
Given that you don't have per the screenshot shared, you can add using "Add" actions in top left -> Add Task model -> Choose the task (in this case, workflow purge)
In repository, this will get saved in below path.
It is a one time activity and need not be part of code deployment.
If you are still looking for adding it as code outside your project code base, then add task in your local -> overlay to /apps -> Take a package out of it and deploy across.
Views
Replies
Total Likes
Views
Replies
Total Likes
@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.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@Vijayalakshmi_S @kautuk_sahni
Is it possible to have the workflow instances records after they are purged for audit purpose ?
Views
Replies
Total Likes
No, the workflow instance itself as in its history of steps, any metadata etc.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@RonnieForum Instead of using workflow remover, you can leverage workflow purge oob for your purpose
here you will provide days in configurations "scheduledpurge.daysold"
Views
Likes
Replies
Views
Likes
Replies