Hi everyone,
I can’t delete a process with the method deleteProcessInstance on processRuntimeAPI witch have a connector in failed status. The method return the message USERNAME=Walter.Bates | Lock was not released. Object type: PROCESS, id: 5.
Must I call another method on the process before deleting, must I change the state on the connector before deleting or do something else ?
Or is there another problem ?
Thanks for response.
Hi,
Thanks for response.
I’ve found my problem…
This was due to many attempt to delete the same instance of process unless it was already deleted !!!
The second attempt signal that the instance is not found => all right but i don’t see this message… oups
But the next attempts return the message Lock was not released => That’s stange !!!
I 'll not search the cause since I’ve found my problem…
Sorry for evoke a false (true ?) problem.
Hi,
do you have more information from the root cause of the failure (like stack trace in the log file)?
If you want to delete only the process instance with the id “5” there is no alternative method. However, if you can delete all instances related to the same process definition you can use the method:
deleteProcessInstances(final long processDefinitionId, final int startIndex, final int maxResults)
The message about lock was due to another problem (fixed in version 6.5.0).
All rights…
Thanks for this precision.