MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          jbpm4

          Posted on 2010-05-17 18:02 leekiang 閱讀(972) 評論(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.aygfsteel.com/vanlin/archive/2009/10/12/297903.html
          http://n.tomek.bujok.info/index.php/Spring_integration_in_jBPM_4
          主站蜘蛛池模板: 普洱| 龙州县| 林芝县| 岢岚县| 乌鲁木齐县| 白沙| 荆州市| 沾益县| 特克斯县| 江西省| 诸暨市| 松江区| 祁门县| 兰溪市| 崇礼县| 广灵县| 乌拉特前旗| 鱼台县| 奉新县| 克东县| 呼伦贝尔市| 新密市| 宜春市| 柯坪县| 远安县| 都安| 潜山县| 原平市| 永和县| 西安市| 嵊泗县| 达日县| 淮北市| 灵宝市| 亚东县| 西乌珠穆沁旗| 和政县| 大城县| 抚顺县| 金平| 禄劝|