cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to run the process with custom user and group tables?

vamsinipun
Star Contributor
Star Contributor

Hi Team,

     I am using activiti in my spring web application. I would like to know, Is it possible to run the process with custom user and group tables?

Thanks

14 REPLIES 14

daisuke-yoshimo
Star Collaborator
Star Collaborator

i am using activiti 5.x and checked given link. but i didn't understand. please help me out.

How do you use Activiti? Embeded engine, Rest, spring-boot?

It is easy to answer if you tell it.

spring boot

Vamsi Krishna

I made the example project for your case. 

GitHub - daisuke-yoshimoto/activiti-spring-boot-sample-custom-identity-management: Activiti example(... 

Does it make sense?

Hi,

   Thank you for your support. Given code very helpful to me.

   Please clarify my doubts i mentioned in below.

   1. Where we created users and role groups in given project? 

2. Please check below questions.   

@Override
public List<Group> findGroupsByUser(String userId) {
Map<String, String> groupMapping = new HashMap<String, String>();
groupMapping.put("vamsi", "admin");
groupMapping.put("gonzo", "dev");
groupMapping.put("fozzie", "user");

Group group = new GroupEntity();
group.setId(groupMapping.get(userId));
group.setName(groupMapping.get(userId));
group.setType(groupMapping.get(userId));

return Arrays.asList(group);
}

I think in above code we maintain user id and group data by using groupMapping variable. Here i think, will maintain my app users and group data in groupMapping varaible. right?

Thanks

how can i manage if single user has multiple groups?

My sample only shows how to plug in its own implementation into Activiti 's Identity Management.

The implementation itself, please do as you like to suit your requirements.

K. above project scenario is custom groups, right?