cancel
Showing results for 
Search instead for 
Did you mean: 

Numerous questions on GroupEntity type field

jwestra
Champ in-the-making
Champ in-the-making
I am writing a custom GroupEntityManager to access an existing user and group store.  I am basing it off of the LDAPGroupManager.java from Chapt. 10 of Activiti in Action book.  That said, there is no group.setType() called anywhere in that code, so I am unclear what to do with that field.

1. What are valid values for a Group "type" ?

For instance, I've done some searching and came across posts on the forum that mention:
a.) "assignment"
b.) "security-role"

However, I have no idea if they are the only valid values nor do I understand what they really mean in the overall architecture of Activiti.

3. What do I do if my existing groups database does not have them?

4. Can I use my own 'type' values if I am not using the Activiti Explorer UI?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The type is used foremost in Explorer/rest, to give users/admin role.

For example:

  Group group = identityService.newGroup("user");
                group.setName("users");
                group.setType("security-role");
                identityService.saveGroup(group);