[jboss-user] [jBPM] - How to resume a suspended task?
Sandra Renaud
do-not-reply at jboss.com
Fri Apr 12 09:23:10 EDT 2013
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion
"How to resume a suspended task?"
To view the discussion, visit: https://community.jboss.org/message/808010#808010
--------------------------------------------------------------
Hello,
I would like to suspend a task in progression. During this time an other process works and when it finishes, the task is resumed.
This is the magnified view :
https://community.jboss.org/servlet/JiveServlet/showImage/2-808010-20635/data_correction_schemas.png https://community.jboss.org/servlet/JiveServlet/downloadImage/2-808010-20635/450-360/data_correction_schemas.png
The resume method throw an exception that I'm not sure to understand :
Caused by: org.jbpm.task.service.PermissionDeniedException: User '[User:'renauds']' was unable to execution operation 'Resume' on task id 7 due to a no 'current status' match
at org.jbpm.task.service.TaskServiceSession.evalCommand(TaskServiceSession.java:311) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:426) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.local.LocalTaskService.resume(LocalTaskService.java:264) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
at com.st.ams.task.management.TaskManager.resumeTask(TaskManager.java:320) [classes:]
What can rise this exception ; the userId (he is correct), or it is the suspended status that is not allowed/recognized?
Moreover, even if the application crashes, in database, the status has well return to "InProgress" so it seems to work.
So, my question is, may I just have to catch the exception and ignore it or is there a real problem?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/808010#808010]
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/20130412/a324c452/attachment.html
More information about the jboss-user
mailing list