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

cancel
Showing results for 
Search instead for 
Did you mean: 
vamsinipun
Established Member

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

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
daisuke-yoshimo
Senior Member

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

vamsinipun
Established Member

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

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

daisuke-yoshimo
Senior Member

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

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

It is easy to answer if you tell it.

vamsinipun
Established Member

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

spring boot

ryandawson
Alfresco Employee

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

I think this is the same question as on  Perhaps the links on that thread are easier to follow?

daisuke-yoshimo
Senior Member

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

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?

vamsinipun
Established Member

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

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

vamsinipun
Established Member

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

how can i manage if single user has multiple groups?

daisuke-yoshimo
Senior Member

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

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.