Hi all,
In our TCP environment we have a large number of draft processes.
We would like to clean up these processes after a certain amount of days to keep the system clean.
My first idea was to use the CleanUp agent to achieve this. I created a new job with the following conditions, just to test whether it would clean up a draft process:
<And>
<ProcessInstance.Status Condition="=">1</ProcessInstance.Status>
<ProcessInstance.ProcessClassName Condition="=">ZoekRelatieEnOfDossier</ProcessInstance.ProcessClassName>
<ProcessInstance.Id Condition="=">PIz136853567309930a36535-a5c3-4d79-a2d9-6517feb280fd</ProcessInstance.Id>
</And>
However the process instance is found, but from the log I can see that it isn’t deleted.
2013-05-17 13:30:00,144 INFO WorkManager(2)-80 [com.opentext.ecm.bpm.maint.ProcessCleanup] cleaning up 1 process instances
2013-05-17 13:30:00,425 ERROR WorkManager(2)-80 [com.opentext.ecm.bpm.engine.impl.ProcessEngineImpl] The status of the work item with the id WIz136853567309994c34166-5334-4183-9c0c-91fef47eab72 is active (It's status is '16'), instance cannot be deleted
2013-05-17 13:30:00,426 INFO WorkManager(2)-80 [com.opentext.ecm.bpm.service.ProcessServiceImpl] Error in method 'deleteProcessInstance'
2013-05-17 13:30:00,426 ERROR WorkManager(2)-80 [com.opentext.ecm.bpm.service.ProcessServiceImpl] The work item 'WIz136853567309994c34166-5334-4183-9c0c-91fef47eab72' is active (the status is '16'), the process instance can not be deleted.
2013-05-17 13:30:00,430 WARN WorkManager(2)-80 [com.opentext.ecm.bpm.maint.ProcessCleanup] clean up of PIz136853567309930a36535-a5c3-4d79-a2d9-6517feb280fd failed (The work item 'WIz136853567309994c34166-5334-4183-9c0c-91fef47eab72' is active (the status is '16'), the process instance can not be deleted.)
2013-05-17 13:30:00,431 INFO WorkManager(2)-80 [com.opentext.ecm.bpm.maint.ProcessCleanup] clean up done, 0 of 1 process instances, duration: 285
I also tried to put an escalalation on either the startstep or the initiatorstep to bypass the step after a cetrain amount of time, but unfortunately this doesn't work. Probably because the processes isn't really started yet.
Do you know an alternative way to get rid of these processes automatically (besides manually removing them or creating an own custom function)?
Regards,
Peter