[jboss-user] [jBPM] - No current status match exception.

Dsire krish do-not-reply at jboss.com
Sat Aug 25 07:47:08 EDT 2012


Dsire krish [https://community.jboss.org/people/arselv] created the discussion

"No current status match exception."

To view the discussion, visit: https://community.jboss.org/message/755934#755934

--------------------------------------------------------------
I need to get the tasks by status and then start them.
But at some times while retrieveing the tasks im getting the started process id as well and thats in where im getting this exception.


org.jbpm.task.service.PermissionDeniedException: Server-side Exception: User '[User:'admin']' was unable to execution operation 'Start' on task id 287271 due to a no 'current status' match
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

My mina task handler is running in jboss and the application uses its client to the task operations.

Retrieveing tasks by status:

BlockingTaskSummaryResponseHandler resHandler = new BlockingTaskSummaryResponseHandler();
                                        List<Status>statusls=new ArrayList<Status>();
                                        statusls.add(Status.Reserved);
                                        client.getTasksAssignedAsPotentialOwnerByStatus("admin",statusls,  "en-UK", resHandler);

Starting the task:

     BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
                    client.start(taskId, userId, responseHandler);

*Is there any thing to do with hibernate or what should i take care to eliminate this replication.?*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/755934#755934]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

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


More information about the jboss-user mailing list