JBoss Community

processEngine.setAuthenticatedUserId(userId) accept null user

created by Jaber C. Mourad in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community