cancel
Showing results for 
Search instead for 
Did you mean: 

Replacing ACT_ID_USER table

wesley
Champ in-the-making
Champ in-the-making
I'd like to get a push to the right direction. What i'm trying to achieve is to customize activiti to use my own users table instead of the default ACT_ID_USER table. My question is around how far in customizing everything should I go?

I've been thinking to

1. replace mappings.xml (and initializing this from custom configuration class extending StandaloneProcessEngineConfiguration) to include my own SQL for User.xml entity, and pretty much keeping everything else as they are

2. replace mappings.xml to include my own entity called the Identity.xml for a new IdentityEntity class (implementing User and PersistentObject) and then extend UserManager with my own code that works with the IdentityEntity instances

3. replace mappings.xml to include my own entity together with my own IdentityEntity class but instead of extending UserManager I would create a new IdentityManager that extends AbstractManager (to get my own api more aligned with my DB table). This option means that I also need to extend IdentityServiceImpl and many of the commands to reflect the new IdentityManager class.

4. do one of the above, but not mess with mappings.xml and custom configuration class that initializes the sqlSessionFactory – dunno what would be a good alternative though

So which way should I go? Would option #3 even work? Any other suggestions?
2 REPLIES 2

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
This is a question for the user forum… so please next time…

Creating custom usermanagement is also discussed there with options you have not mentioned. So please look (search) there first

wesley
Champ in-the-making
Champ in-the-making
OK, moved to http://forums.activiti.org/en/viewtopic.php?f=6&t=2187.

And thanks for the suggestion. I've already searched the forums.