Hi,
As part of terminating a process instance, I believe it is required to stop the workitem before. But it doesnt allow me to do that. it gives me the exception below. After stop I tried to activate the workitem, hoping that once it is activated the stop API might work but even activating it gave me the same exception.
org.jbpm.task.service.PermissionDeniedException: User '[User:'mary']' was unable to execution operation 'Activate' on task id 29 due to a no 'current status' match.
I use the code frag below :
client.activate(taskSummary.getId(), taskSummary.getActualOwner().getId(), operationResponseHandler);
client.stop(taskSummary.getId(), taskSummary.getActualOwner().getId(), operationResponseHandler);
What could be the reason?