[jboss-user] [jBPM] - Unable to activate or stop workitem

roxy1987 do-not-reply at jboss.com
Mon Jan 14 15:53:13 EST 2013

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


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

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130114/acb43b82/attachment.html 

More information about the jboss-user mailing list