I want to use the ProcessManager API to purge some specific long lived process Instances like this :
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 ?
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);
But I don't know how to get the invocation ID of my process Instance.