-
1. Re: how to use our own datasource for organisational information in jbpm?
maniv Aug 10, 2011 9:39 AM (in response to maniv)i myself found solution for this discussion .
-
2. Re: how to use our own datasource for organisational information in jbpm?
swiderski.maciej Aug 10, 2011 12:26 PM (in response to maniv)would be great if you could post your findings here and mark the question as answered so other can find it useful
Cheers
-
3. Re: how to use our own datasource for organisational information in jbpm?
maniv Sep 4, 2011 3:52 AM (in response to swiderski.maciej)Apologies for late reply,
As depict below we could achieve redirecting org.jbpm.identity.hibernate.IdentitySession to our own datasource.
- map customized datasource in hibernate_jbpm_identity.cfg.xml file.
- configure hibernate_jbpm_identity.hbm.xml file using below entity w.r.t customized datasource table structure
org.jbpm.identity.User
org.jbpm.identity.Group
org.jbpm.identity.Membership
org.jbpm.identity.hibernate.PermissionUserType3. public class IdentitySession extends
org.jbpm.identity.hibernate.IdentitySession4. SessionFactory sessionFactory = new Configuration()
.configure("hibernate_jbpm_identity.cfg.xml")
.buildSessionFactory();Session session = sessionFactory.openSession();
IdentitySession identitySession = new IdentitySession(session);5. use now "session" reference in jbpm project which is having direction to customized ds...