2 Replies Latest reply on Jan 21, 2013 8:42 AM by joploya

    Unable to Complete a Reserved Task

    joploya

      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,