-
1. Re: Updating users, groups or membership
rebody May 11, 2010 4:25 AM (in response to juanignaciosl)Hi Juan,
Actually, the IdentityService is just provided for test. If you want to manage user and group data, you should use your own system.
-
2. Re: Updating users, groups or membership
juanignaciosl May 11, 2010 4:31 AM (in response to rebody)Do you mean we should create our own mechanism to store the data at JBPM4_ID_USER, JBPM4_ID_GROUP, JBPM4_ID_MEMBERSHIP, right?
-
3. Re: Updating users, groups or membership
rebody May 11, 2010 4:50 AM (in response to juanignaciosl)1 of 1 people found this helpfulHi Juan,
I don't know if there was further plan for identity management in jBPM 4. But I am sure that the current identityService is not enough for managing user data directly.
-
4. Re: Updating users, groups or membership
juanignaciosl May 11, 2010 4:55 AM (in response to rebody)My problem with that is not only the identity management itself but task assignment through groups. If I make my own system without that tables, assignment of tasks to users members of a group won't work.
-
5. Re: Updating users, groups or membership
mwohlf May 11, 2010 4:55 AM (in response to juanignaciosl)1 of 1 people found this helpfulHi Juan,
you don't need to use the JBPM4_ID_USER, JBPM4_ID_MEMBERSHIP and JBPM4_ID_GROUP tables from jbpm4, the only way jBPM4 interacts with identities is by using String IDs, like for example the taskService.findGroupTasks(userId) or task.getAssignee() methods.
So you can implement your own Abstraction layer for whatever identity backend you have.
Having said that, of course you are free to use the included tables and the jBPM4 identity component however there might be some features missing.
-
6. Re: Updating users, groups or membership
juanignaciosl May 11, 2010 5:06 AM (in response to mwohlf)I see. The best practice then is implementing org.jbpm.pvm.internal.identity.spi.IdentitySession at our own identity management system, isn't it?
-
7. Re: Updating users, groups or membership
mwohlf May 11, 2010 5:22 AM (in response to juanignaciosl)I would say so,
for the IdentitySession interface you have to implement findGroupsByUser(String userId) which is used for resolving the group assignments as far as i understand the code.
-
8. Re: Updating users, groups or membership
juanignaciosl May 11, 2010 5:23 AM (in response to mwohlf)Ok, thanks!!
-
9. Re: Updating users, groups or membership
rebody May 11, 2010 5:26 AM (in response to juanignaciosl)Hi Juan,
I am agree with Michael. And jBPM4 had already provide a way to customize your own IdentitySession. You could find more information from Developer guides.
http://docs.jboss.com/jbpm/v4/devguide/html_single/#customizingtheidentitycomponent
-
10. Re: Updating users, groups or membership
juanignaciosl May 11, 2010 5:34 AM (in response to rebody)Yep, we were discussing that right now. Our application uses Seam, so we think the best way to do so is making "OurIdentitySessionImpl" retrieving userList component and querying through it. It should be quite straightforward (I hope so, at least).
-
11. Re: Updating users, groups or membership
mwohlf May 11, 2010 5:45 AM (in response to juanignaciosl)Yea Seam is great, I was thinking about using something like IdentityManager.instance() in my IdentitySession implementation since the IdentityManager seems to offer most of the required functionality for the IdentitySession interface already but I am not there yet...