I refer to the official documentation, jBPM5.4 Integration spring.
that's ok!
howeve, existing system use HibernateTransactionManager, if jBPM5 human task error, existing system data writed database,How to deal with multiple transacation manager?
exist system config:
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
jbpm5.4 config:
<bean id="jbpmEMF" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName" value="org.jbpm.persistence.local"/>
</bean>
<jbpm:ksession id="ksession" type="stateful" kbase="kbase">
<jbpm:configuration>
<jbpm:jpa-persistence>
<jbpm:transaction-manager ref="transactionManager"/>
<jbpm:entity-manager-factory ref="jbpmEMF"/>
</jbpm:jpa-persistence>
</jbpm:configuration>
</jbpm:ksession>