0 Replies Latest reply on Dec 6, 2010 10:10 AM by Jaber C. Mourad

    processEngine.setAuthenticatedUserId(userId) accept null user

    Jaber C. Mourad Novice

      Hi,

       

      I'm using processEngine.setAuthenticatedUserId(userId) on jbpm 4.4.

       

      I found something curious with userId value

      for example :

      TaskService ts = processEngine.setAuthenticatedUserId(userId).getTaskService();
      List<Task> tasks = ts.findPersonalTasks(userId);
      
      

      If userId != null : I've got userId task list as expected !

      If userId == null : I've got everyone tasks !! I would get not tasks or not assigned tasks !

       

      Is there something wrong in this result ?

       

      Regards