JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..
时间:2010-12-26 BlogJava Kim
前段时间对 JBPM 4.0 Spring 2.6 进行了整合
方法有几种,经过比较感觉原生集成较好~
整合后的结构:
src\resources
src\resources\jbpm
src\resources\jbpm\jbpm.cfg.xml
src\resources\jbpm\jbpm.default.cfg.xml
src\resources\jbpm\jbpm.tx.hibernate.cfg.xml
src\resources\jbpm\jbpm.mail.properties
src\resources\jbpm\jbpm.mail.templates.examples.xml
src\resources\jbpm\logging.properties
src\resources\spring\applicationContext-jbpm.xml
src\resources\spring\applicationContext-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>
JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..(2)
时间:2010-12-26 BlogJava Kim
jbpm.default.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<!--kim
<hibernate-configuration>
<cfg resource="jbpm.hibernate.cfg.xml" />
</hibernate-configuration>
<hibernate-session-factory />
!-->
<script-manager default-expression-language="juel"
default-script-language="juel">
<script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
</script-manager>
<authentication />
<id-generator />
<types resource="jbpm.variable.types.xml&qu
|