Arun V G [https://community.jboss.org/people/arunvg] created the discussion

"Re: The users or groups which human task server add is stored in db?"

To view the discussion, visit: https://community.jboss.org/message/717356#717356

--------------------------------------------------------------
Hi 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..+



Just shared my thoughts may be it would help you .
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/717356#717356]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to