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.
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).
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 ;( ).
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.