Check out UserGroupCallback interface and its implemenataion which can be found in the 5.4.0 snapshot . The mapping of the relationship between user and the group is defined here . After calling UserGroupCallbackManager.getInstance().setCallback(yourUserGroupCallback) ,the TaskService API will use these UserGroupCallback to do the authorization .
Hi wqe(seems it is not your real name),
Thanks for your reply. Just have a quick check about the doc in http://docs.jboss.org/jbpm/v5.3/javadocs/org/jbpm/task/service/UserGroupCallback.html. Actually, it is very hard for me to understand the inner logic and implement an code for UserGroupCallback Object. Would you pls drop me an example or a useful link?
You can reference some implementations of UserGroupCallback at here .
To find out which codes call the methods of the UserGroupCallback , you can highlight the interface method in eclipse , and the press "CTRL+G" to find out which codes will call that method