1

我使用 jBPM 5.4 创建了一个简单的流程。我想使用 Spring-Hibernate 提供的事务管理。为此需要进行哪些更改和配置?还有什么是分步过程?

4

1 回答 1

1

Check the documentation here: http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7839

There are some examples, like https://github.com/droolsjbpm/droolsjbpm-integration/blob/5.5.0.Final/drools-container/drools-spring/src/test/java/org/drools/container/spring/beans/persistence/JPASingleSessionCommandServiceFactoryTest.java

Basically, you can use a Spring configuration file to configure your persistence, transactions and ksessions (if you want to), and then inject them into your code for usage there.

Kris

于 2013-06-10T08:48:16.793 回答