roxy1987 [
https://community.jboss.org/people/roxy1987] created the discussion
"Unable to activate or stop workitem"
To view the discussion, visit:
https://community.jboss.org/message/791712#791712
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/791712#791712]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]