Posted on 2010-05-17 18:02
leekiang 閱讀(969)
評論(0) 編輯 收藏 所屬分類:
工作流(JBPM)
1.使用AbstractTransactionalSpringJbpmTestCase做測試時出錯
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no org.jbpm.pvm.internal.tx.SpringTransaction in current environment
解決辦法:
在jbpm.cfg.xml的<transaction-context>里加上一行
<transaction type="spring" />
2.
?如果使用了
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper" />
<bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
就不需要通過Configuration構造了,可以通過spring里的依賴注入獲得processEngine
包括什么repositoryService,taskService都不要進行bean配置了
https://jira.jboss.org/browse/JBPM-2710
http://jbpm.group.javaeye.com/group/topic/18352
http://ronghao.javaeye.com/blog/412956
http://xiaokaiye.javaeye.com/blog/413136
http://jbpm.group.javaeye.com/group/blog/375061
http://www.slideshare.net/ainze/spring-integration-with-jbpm4#
http://www.tkk7.com/vanlin/archive/2009/10/12/297903.html
http://n.tomek.bujok.info/index.php/Spring_integration_in_jBPM_4