cancel
Showing results for 
Search instead for 
Did you mean: 

Can we map existing database of users in Activiti's database

ashay
Champ on-the-rise
Champ on-the-rise
I have scenario as :
I already have table of users. if I want to use that table for activiti(i.e Identity of users can be identified by this table).can I map the exiting users table to activiti's user table
             MyGroup -> ACT_ID_GROUP ,
             MyIDInfo ->  ACT_ID_INFO ,
             MyIDMembership -> ACT_ID_MEMBERSHIP,
             Myuser -> ACT_ID_USER
can I do this and how?
help me out.
5 REPLIES 5

ashay
Champ on-the-rise
Champ on-the-rise
Can I change ibatis Mapping files for handling the identityservice..?
I want to change the :

ACT_ID_GROUP->MyGroup  ,
ACT_ID_INFO->MyIDInfo ,
ACT_ID_MEMBERSHIP->MyIDMembership,
ACT_ID_USER->Myuser

the tables on left side exist in other database
Will it be possible?

jbarrez
Star Contributor
Star Contributor
The correct way is to create a custom Group- and UserEntityManager implementation. That way, you can go straight to your database.

See the activiti-ldap module source code, that's a good example of how it can be customized.

ashay
Champ on-the-rise
Champ on-the-rise
thanks for reply.
what do you mean " create a custom Group- and UserEntityManager implementation"?

I have one question : if my table have different column names, then what will be solution.

jbarrez
Star Contributor
Star Contributor
> what do you mean " create a custom Group- and UserEntityManager implementation"?


That you can basically replace the whole user/group mgmt of Activiti, it's pluggable. The Activiti-LDAP module does exactly that: replace the database backed implementation and adding classes that go to a LDAP system.

> I have one question : if my table have different column names, then what will be solution.

Like I said, don't try to mimic the database of Activiti, simply plug in your own implementations of the user/group classes and your good to go

ashay
Champ on-the-rise
Champ on-the-rise
I had gone through the code of ldap….
I am building a web app in which I want this type of integration….
I have my own existing tables for user management…I want to use identityservice of processEngine which check users/groups from this database,because I am creating workflows based on these users…
From ldap example I got the idea…but I want to create instance of ProcessEngine(this instance has to provide me identityservice which i want) in myweb app


Can you tell me how to create it?