-
1. Re: The users or groups which human task server add is stored in db?
arunvg Feb 17, 2012 12:04 AM (in response to jimmy.dongjia)1 of 1 people found this helpfulHi Jimmy ,
From other forum posts and my experiments what I found is that the better way for identity managment is to use the UserGroupCallback interface. Using this you can avoid implicit addition of users/groups in runtime.
org.jbpm.task.service.UserGroupCallback is the interface provided for this purpose.
The interface has three methods :
- boolean existsUser(String userId)
Validates whether the input userid is valid for your application. If you are doing an evaluation , always return a true, the user assigned to the task in the process definition would be automatically added to the
ORGANIZATIONALENTITY table ( magic )
- boolean existsGroup(String groupId)
Validates whether the input groupId is valid for your application.Similar to above for evaluation we can return true and the above magic repeats.
.
- List<String> getGroupsForUser(String userId, List<String> groupIds, List<String> allExistingGroupIds)
Never tried this, but as in case of the other methods , the method signature says it all..
Link to JBPM5.3 Userguide : http://hudson.jboss.org/hudson/job/jBPM/lastSuccessfulBuild/artifact/jbpm-distribution/target/jbpm-5.3.0-SNAPSHOT-docs-build/jbpm-docs/html_single/index.html#d0e4726
Check section 13.2.4
Just shared my thoughts may be it would help you .
Cheers
-
2. Re: The users or groups which human task server add is stored in db?
jimmy.dongjia Feb 17, 2012 6:02 AM (in response to arunvg)Cool !!!But this api is provided in jbpm5.3,can I use version 5.3 now?
-
3. Re: The users or groups which human task server add is stored in db?
arunvg Feb 17, 2012 6:09 AM (in response to jimmy.dongjia)I have tried this in 5.2 and is working
Cheers
-
4. Re: The users or groups which human task server add is stored in db?
jimmy.dongjia Feb 18, 2012 4:57 AM (in response to arunvg)Thanks!!!
I will upgrade my jbpm version!