[jboss-dev-forums] [jBPM Development] - Re: Deprecated API getTasksAssignedAsPotentialOwnerByStatusByGroup
Shobhit Tyagi
do-not-reply at jboss.com
Wed Mar 13 15:41:39 EDT 2013
Shobhit Tyagi [https://community.jboss.org/people/roxy1987] created the discussion
"Re: Deprecated API getTasksAssignedAsPotentialOwnerByStatusByGroup"
To view the discussion, visit: https://community.jboss.org/message/802465#802465
--------------------------------------------------------------
*You can use the method 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)*
You dont need to mention the name of the groups.
The user group call back takes them by itself. All you need is to register the UserGroupCallback via UserGroupCallbackManager. You could use a property file to specify the mapping between the users and roles in the format :
userid1=group1,group2,group3
userid2=group4,group3,group1
userid3=group1,group2
...
...
And specify the path of this file in your CustomUserGroupCallBack.
So wehn you call 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 take the groups for the userId.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802465#802465]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130313/006143b4/attachment.html
More information about the jboss-dev-forums
mailing list