Discussion:
[jboss-user] [jBPM] - Unable to Complete a Reserved Task
Sandra Renaud
2013-01-21 12:52:38 UTC
Permalink
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Unable to Complete a Reserved Task"

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

--------------------------------------------------------------
Hello all,

I am stopped at the end of the first step of my flow by this error :

org.jbpm.task.service.PermissionDeniedException: User '[User:'renauds']' was unable to execution operation 'Complete' on task id 1 due to a no 'current status' match


Going on the TaskServiceSession (evalCommand function) I don't find where it starts to be wrong.

Before to call the complete function
getTaskService().completeWithResults(task.getId(), ((UserLDAP)identity.getUser()).getUser().getLogin(), results);

I print these lines :
System.out.println("task id "+task.getId()+" has status "+getTaskService().getTask(task.getId()).getTaskData().getStatus()+" and is assigned to "+getTaskService().getTask(task.getId()).getTaskData().getActualOwner());

=>
User renauds wants to complete task id 1
task id 1 has status Reserved and is assigned to [User:'renauds']
DEBUG [task.management.MyUserGroupCallbackImpl] (http--127.0.0.1-8080-1) Seaching for user existence with filter renauds


If someone have an hint...

Best regards,
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
vchmakov
2013-01-21 13:11:37 UTC
Permalink
vchmakov [https://community.jboss.org/people/vchmakov] created the discussion

"Re: Unable to Complete a Reserved Task"

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

--------------------------------------------------------------
I believe you should call start() before complete()/completeWithResults().

HTH
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sandra Renaud
2013-01-21 13:42:43 UTC
Permalink
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Re: Unable to Complete a Reserved Task"

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

--------------------------------------------------------------
Thank you very much for your reply,

I come back to the user guide to see the task lifecycle graphe ( http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5273 http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e5273) and effectively I missed the state In progress.

Best regards
--------------------------------------------------------------

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

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