JBoss Community

How to resume a suspended task?

created by Sandra Renaud in jBPM - View the full discussion

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/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

Start a new discussion in jBPM at Community