MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

jbpm4

Posted on 2010-05-17 18:02 leekiang 阅读(956) 评论(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.blogjava.net/vanlin/archive/2009/10/12/297903.html
http://n.tomek.bujok.info/index.php/Spring_integration_in_jBPM_4

只有注册用户登录后才能发表评论。


网站导航: