Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Purge a process Instance

Avatar

Level 1

Hi,

I want to use the ProcessManager API to purge some specific long lived process Instances like this :

pm.purgeProcessInstance(invocationID);

But i didn't find a way to get the invocation ID of my process instance.

I use the TaskManagerQueryService to search for process instances and get a list of ProcessInstanceRow objects.

But unfortunately, this object doesn't have an invocationID attribute, only the processInstanceID...

Is there a way to get the invocationID from a process instance ?

Thanks,

Will

3 Replies

Avatar

Level 10

We also have a purge tool under C:\Adobe\LiveCycle8.2\LiveCycle_ES_SDK\misc\Foundation\ProcessPurgeTool that might be easier to use.

Jasmin

Avatar

Level 1

Jasmin,

I know this tool and I tried it but it's a batch used to purge a lot of process intstances depending on the creation date and other stuff.

In the source of the batch i founded that it use the process Manager API to purge instances.

I need to purge a specific process instance and I only know the process instance ID of it.

The only method I know to purge a specific instance is this one (from the Process Manager API, the same used by the batch) :

ProcessManager pm = new ProcessManager(_factory);

pm.purgeProcessInstance(_invocationID);

But I don't know how to get the invocation ID of my process Instance.

Best regards,

Will

Avatar

Level 9

Hi

We have a component in beta that will allow you to do this.

Please contact info@avoka.com for more details.

Thanks,

howard