cancel
Showing results for 
Search instead for 
Did you mean: 

Add customize user data table instead of using default ACT_ID_USER

raveera
Champ in-the-making
Champ in-the-making
Hi i dont have much experince about ORM tools but i have used hibernate. my problemis,

i want to attach my customized activiti work flow manger appliaction to a anothe existing database.It has a user data table that contains different columns.I want to replace default ACT_ID_USER table with my existing user table.How can accomplish it?

I found out there plenty of questions regarding to that but i couldnt find any proper answer or proper approach.I download the activiti source and figure out it uses iBATIS as ORM tool. Can i accomplish that by editing sql file that resides in
/activiti-engine/src/main/resources/org/activiti/db/create   and also editing that mapping file Users.xml  resides in /activiti-engine/src/main/resources/org/activiti/db/mapping/entity .if i edit those files will it work ?

my mysql user table is mst_user(user_id,user_name,user_password,status,address ,…….) like wise it contains several columns

I have to do these things through self studies.please can any one  give me right direction and guidance to do this properly what is the best approach

5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
Yes, that is possible. You need to implement your own UserEntityManager and GroupEntityManager. There are plenty of sources online that show how to do that. In the activiti source code, you can check the activiti-ldap module source code where LDAP is used instead of the database tables.

raveera
Champ in-the-making
Champ in-the-making
Can you please give some references regarding to this

jbarrez
Star Contributor
Star Contributor
Seriously?

Activiti is open source. All code is on github. If I say 'activiti-ldap' module….. then that's not very hard to find…: https://github.com/Activiti/Activiti/tree/master/modules/activiti-ldap

dejanmr
Champ in-the-making
Champ in-the-making
I am looking for this functionality too.

I have fund about 9840923480923 of your answers to posts, answering this very question, with this very same answer.

Wouldn't be easier for you just to provide sample implementation?

Kinda of this (now outdated) blog post http://developer4life.blogspot.com/2012/02/activiti-authentication-and-identity.html

It's  just link for these more impatient, who gave up on 23323 answer "Go look at ldap sample".

Regards.

jbarrez
Star Contributor
Star Contributor
@dejanmr: the source code to which i refer has tests. These test have full spring config + test case that show how to run it. I am assuming a basic development skills of people who post here.

"Wouldn't be easier for you just to provide sample implementation?"

No, easier would be to ignore posts like this. 

We provide unit tests, a user guide, and several blog posts continuously. All open source and we're expecting nothing in return.
His question was about customizing the entity manager for user/groups and the ldap code provides an excellent example there with the LdapConfigurator. What more should I do? Implement one for your and everyone's special database schema/system/solution?