Discussion:
[jboss-user] [jBPM] - How to resume a suspended task?
Sandra Renaud
2013-04-12 13:23:10 UTC
Permalink
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 :
Loading Image... Loading Image...

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]
Loading...