Expand my Community achievements bar.

SOLVED

How to purge aborted/terminated workflow instances and audit trails?

Avatar

Level 9

Hi All,

I got service details to purge completed workflows and also I want to know is there any built in services avaialble in AEM to perform below things as well.

  1. To purge aborted or terminated workflows
  2. Audit trails(/var/audit)

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

The Workflow maintenance jmx bean [0] supports purging worklfows.  Terminated workflows are purged as part of the "completed" workflows, unfortunately there is no specific way to purge only terminated workflows.

Will

[0] http://localhost:4502/system/console/jmx/com.adobe.granite.workflow%3Atype%3DMaintenance

View solution in original post

6 Replies

Avatar

Correct answer by
Employee

Hi,

The Workflow maintenance jmx bean [0] supports purging worklfows.  Terminated workflows are purged as part of the "completed" workflows, unfortunately there is no specific way to purge only terminated workflows.

Will

[0] http://localhost:4502/system/console/jmx/com.adobe.granite.workflow%3Atype%3DMaintenance

Avatar

Level 9

Hi Kishore,

I am not quite sure on the built-in services , but the below link seems to be related. 

http://helpx.adobe.com/experience-manager/kb/howtopurgewf.html

Avatar

Level 9

Hi All,

I was trying to gain an understanding on how the workflows work[somewhat related to the one being discussed].


There is a package in the article http://helpx.adobe.com/experience-manager/kb/howtopurgewf.html


I was trying to import that into eclipse, so that I could understand better, but I am not able to.


Can someone please let me know the way I need to do it.

Avatar

Level 9

askdctm wrote...

Hi Kishore,

I am not quite sure on the built-in services , but the below link seems to be related. 

http://helpx.adobe.com/experience-manager/kb/howtopurgewf.html

 

 

 

I have already gone through this link it details about how to delete completed workflows but not for terminated and aborted workflows.

Avatar

Level 9

Hi Kishore,

Had a doubt. Is there any jcr variable which will help us distinguish between completed/aborted/terminated workflows.

If yes, probably we can use that or something.

Avatar

Level 9

Hi All,

In my OOTB 5.6.1 instance, I have around 12 workflow instances under "Archive" Tab.

9 of them are aborted and 3 are completed. I ran the purgeCompleted mBean with parameters as below:

- Optional parameter not given
- No. of days as 1. I probably had initiated the workflow 1 or 2 hours back.
- Dry run as false.

I get a message "purge completed" with a row with some workflow metadata related columns.

But I still see the workflow instances as-is. Ideally it should have deleted all of them, correct?