-
1. Re: configure my persistance provider in jbpm
fachhoch Jun 2, 2013 8:04 AM (in response to fachhoch)Please advice me, my application is an old application it uses hibernate for its persistance just the jpa annotations.
My base dao extends HibernateDaoSupport and I save my entites using getSessionFactory().getCurrentSession().save(entity);
do I have to use JPA for jbpm persistance? is there any way we can provide custom DAO for jbpm ?
All jbpm tables will be in one database along with my application tables ,and I want jbpm to use my exsisting transaction manager, I dont want two phase comit using JTA transactions etc? Is this possible?
I am looking at jbpm for simple worklow stuff, define process definition and persist state in database along with my other tables using one transaction manger.
Also it would be great if I can add more columns to any of the jbpm tables and update the annotated entites? Please advice.
-
2. Re: configure my persistance provider in jbpm
fachhoch Jun 3, 2013 1:08 PM (in response to fachhoch)Please I need advice, is it possible to use JBPM without JPA and use my custom persistance mechanisim? Its an old applciation and all persistance is done through hibernate and I dont use Entitymanagerfactory to persists my entities.Please advice can I provide my custom Persistance provider ?
and I would like to add my Entity to the ProcessInstance , please advice .
-
3. Re: configure my persistance provider in jbpm
ashpcs Jun 7, 2013 5:59 AM (in response to fachhoch)Hi Fachhoch,
I think I misundersttod your question when I replied in other thread.
Basically you will have your business tables and you can communicate with it using hibernate and without using JPA. JBPM can use JPA and it should not affect your application.
I believe that this should solve your problem.
-
4. Re: configure my persistance provider in jbpm
fachhoch Jun 7, 2013 9:54 AM (in response to ashpcs)Thanks a lot for your reply, I need one more advice, with transaction manager, I am using spring ,hibernate and TransactionManager is provided by hibernate, to use jbpm I will use Spring entitymanagerfactory and for transactionmanager I guess I have to use the jbmp in built transactionmanager and integrate the two with JTA are there any tutorials or articles with examples on doring this? Appreciate your help.
-
5. Re: configure my persistance provider in jbpm
ashpcs Jun 7, 2013 10:36 AM (in response to fachhoch)You can refer below tutorial link from JBPM http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-persistence.html
Let me know if this helps.