-
1. Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method deprecated
roxy1987 Feb 19, 2013 10:21 AM (in response to gonzalad)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.
-
2. Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method deprecated
gonzalad Feb 19, 2013 2:23 PM (in response to roxy1987)Thanks roxy !
My question was more about where did database-side pagination go (in the previous versions of jBPM this was possible using the 2 parameters
int firstResult, int maxResult
).I have the impression that now, if we have a huge inbox (or tasks assigned for the current user) we need to retrieve all the tasks from the database.
For now, I don't have any problem with that (just evaluating jBPM), but I want to know the best way to handle database pagination for these tasks when the need arise (I could call the deprecated method or the deprecated query method - but they are deprecated, so perhaps not the best solution ;( ).
-
3. Re: jBPM TaskService.getTasksAssignedAsPotentialOwner pagination method deprecated
roxy1987 Feb 19, 2013 4:29 PM (in response to gonzalad)Well I dont know about filtering the group tasks, but personal tasks can be filtered with status etc.
And for deprecation, well the method that I told you is not deprecated.
Regards.