[jboss-user] [jBPM] - Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method deprecated
roxy1987
do-not-reply at jboss.com
Tue Feb 19 10:21:26 EST 2013
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-external=true *String* *userId, * http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true *String* *language,* http://docs.jboss.org/jbpm/v5.4/javadocs/org/jbpm/task/service/TaskClientHandler.TaskSummaryResponseHandler.html *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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130219/fd9eac1a/attachment.html
More information about the jboss-user
mailing list