Welcome 微信登录

首页 / 软件开发 / JAVA / JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..

JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..2010-12-26 BlogJava Kim前段时间对 JBPM 4.0 Spring 2.6 进行了整合

方法有几种,经过比较感觉原生集成较好~

整合后的结构:

src esources

src esourcesjbpm

src esourcesjbpmjbpm.cfg.xml

src esourcesjbpmjbpm.default.cfg.xml

src esourcesjbpmjbpm.tx.hibernate.cfg.xml

src esourcesjbpmjbpm.mail.properties

src esourcesjbpmjbpm.mail.templates.examples.xml

src esourcesjbpmlogging.properties

src esourcesspringapplicationContext-jbpm.xml

src esourcesspringapplicationContext-hibernate.xml

重点是5个标色文件

jbpm.cfg.xml

<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm/jbpm.default.cfg.xml" />
<import resource="jbpm/jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<!-- Job executor is excluded for running the example test cases. -->
<!-- To enable timers and messages in production use, this should be included. -->
<!--
<import resource="jbpm.jobexecutor.cfg.xml" />
-->
<import resource="jbpm/jbpm.mail.templates.examples.xml" />

<process-engine-context>
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
</process-engine-context>
<transaction-context>
<transaction />
<hibernate-session />
</transaction-context>
</jbpm-configuration>