JBoss Community

Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method deprecated

created by roxy1987 in jBPM - View the full discussion

You can register UserGroupCallBack via UserGroupCallbackManager. Or may be you can use the DefaultUserGroupCallBackImpl which can be created based on simple java.util.Properties files that has user and group mappings e.g.

 

alex=manager,sales,admin

 

After that you can use the method taskClient.getTasksAssignedAsPotentialOwner (String userId,  String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler)

 

This will invoke the callback and will collect tasks considering all the groups of the userid, for instance for alex it will find tasks for all three groups (manager,sales,admin).

 

Regards.

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community