roxy1987 [
https://community.jboss.org/people/roxy1987] created the discussion
"Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method
deprecated"
To view the discussion, visit:
https://community.jboss.org/message/798371#798371
--------------------------------------------------------------
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 (*
http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is...
*String* *userId, *
http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is...
*String* *language,*
http://docs.jboss.org/jbpm/v5.4/javadocs/org/jbpm/task/service/TaskClient...
*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
[
https://community.jboss.org/message/798371#798371]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]