-
1. Re: Alternate to the deprecated methods?
swiderski.maciej Jan 12, 2013 4:30 AM (in response to roxy1987)1 of 1 people found this helpfulroxy1987 wrote:
Hi,
The following method/class are deprecated, what alternate method can be used for the same functionality?
1) taskClient.getTasksAssignedAsPotentialOwner (String userId, List<String> groupIds, String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler) : Need to use this for retrieving group tasks.
one that is without groupIds and register UserGroupCallback that will retrieve user groups on demand when querying.
roxy1987 wrote:
2) commandBasedWSHumanTaskHandler.connect()
There are dedicated handlers based on the transport, for instance for HornetQ you'll find AsyncHornetQHTWorkItemHandler, all of these handlers should have connect method.
HTH
-
2. Re: Alternate to the deprecated methods?
roxy1987 Jan 14, 2013 9:43 AM (in response to swiderski.maciej)one that is without groupIds and register UserGroupCallback that will retrieve user groups on demand when querying.
"There is a method which doesnt take groupids as parameter but takes a registered userGroupCallBack". Is that what you meant? I could not find the method you are talking about. Or may be I misunderstood.
-
3. Re: Alternate to the deprecated methods?
swiderski.maciej Jan 14, 2013 12:22 PM (in response to roxy1987)you first register UserGroupCallback via UserGroupCallbackManager, for instance you could use DefaultUserGroupCallbackImpl that can be created based on simple java.util.Properties files that has following entries:
userid=group1,group2,group3
and then use method
taskClient.getTasksAssignedAsPotentialOwner (String userId, String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler)
the callback will be invoked when querying and will callect all groups for given users, for instance for userid it will find all three groups (group1, group2, group3)
HTH
-
4. Re: Alternate to the deprecated methods?
roxy1987 Jan 14, 2013 2:23 PM (in response to swiderski.maciej)1 of 1 people found this helpfulGreat. Thankyou Maciej.