<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    KK

    Kim-'s-Blog.Object-Everything.I'm POJO.

    .紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

    Jbpm4.1特性:
    4.1與Tomcat集成的很好
    4.1提供基于Web的流程編輯功能

    在開發指南中有相關整合章節:

    Replace the standard-transaction-interceptor with the spring-transaction-interceptor. The hibernate session needs the attribute current=”true”. Also, the <transaction/> must be removed from the transaction-context if you want the transactions to be handled by Spring only. This forces jBPM to search for the current session, which will be provided by Spring.

    <process-engine-context>
    <command-service>
    <spring-transaction-interceptor />
    ...
    </command-service>
    ...
    </process-engine-context>
    <transaction-context>
    ...
    <hibernate-session current="true"/>
    </transaction-context>
    

     

    The Spring integration provides a special context, which is added to the set of context where the jBPM engine will look for beans. Using this SpringContext, it is now possible to retrieve beans from the Spring Application Context. For the Spring context to be known, a SpringConfiguration must be created. This class extends the JbpmConfiguration but will add itself as a context. The single constructor take the location of the jBPM configuration.

    <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
    <constructor-arg value="be/inze/spring/demo/jbpm.cfg.xml" />
    </bean>
    

     

    The jBPM services can also be defined in the Spring applicationContext, as following:

    <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
    <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
    <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
    

     

    The previous section already showed how the jBPM services can be made accessible for other Spring services. The other use case is calling Spring beans from within a process. This can be done by using an expression which resolves to the name of a Spring bean.

    <java name="echo" expr="#{echoService}" method="sayHello" >
    <transition name="to accept" to="join1"/>
    </java>
    

    The scripting engine will look into all contexts from the bean named echoService. If you configured the ScriptManager as above, Spring will be the last context to search for. You can also add a Spring bean to the Spring Application context (eg IdentitySessionImpl with id identitySession) and use it in the jBPM config (eg by adding <env class="identitySession" />)

    整合過程與 4 基本相同。
    jbpm.cfg.xml
    <?xml version="1.0" encoding="UTF-8"?>

    <jbpm-configuration>

      
    <import resource="jbpm.default.cfg.xml" />
      
    <import resource="jbpm.tx.spring.cfg.xml" />
      
    <import resource="jbpm.jpdl.cfg.xml" />
      
    <import resource="jbpm.identity.cfg.xml" />
      
    <import resource="jbpm.businesscalendar.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.jobexecutor.cfg.xml" />
      
    <import resource="jbpm/jbpm.mail.templates.examples.xml" />
      
    </jbpm-configuration>

    工作日歷從 default中分離
    整合XML在原生的jbpm.tx.spring.cfg.xml 中

    posted on 2009-09-07 15:15 Kim' 閱讀(2167) 評論(2)  編輯  收藏

    Feedback

    # re: Jbpm 4.1 與Spring 集成 2009-09-14 10:04 禮物
    能不能再詳細點。  回復  更多評論
      

    # re: Jbpm 4.1 與Spring 集成 2009-09-14 10:04 禮物
    最好給個demo  回復  更多評論
      


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    jj
    主站蜘蛛池模板: 亚洲AV成人无码网站| 亚洲一级二级三级不卡| 国产精品久久久久久亚洲小说| 永久免费的网站在线观看| 亚洲黄色免费观看| 久久久久久精品免费看SSS| 亚洲日本在线播放| 国产人成免费视频网站| 亚洲免费在线视频播放| 国产一卡2卡3卡4卡2021免费观看| 国产成人亚洲精品| 日本久久久免费高清| 日韩精品免费一线在线观看| 久久久久亚洲爆乳少妇无| 精品无码国产污污污免费网站国产| 亚洲精品乱码久久久久久中文字幕 | 久久伊人免费视频| 色婷婷亚洲十月十月色天| 5g影院5g天天爽永久免费影院| 亚洲国产美女精品久久久久| 成在人线AV无码免费| 男人扒开添女人下部免费视频| 亚洲精品无码成人AAA片| 亚洲免费一级视频| 亚洲高清国产拍精品熟女| 亚洲爽爽一区二区三区| 久9久9精品免费观看| 亚洲av无码一区二区三区观看| 国产美女精品久久久久久久免费| EEUSS影院WWW在线观看免费| 久久精品国产亚洲av麻豆色欲| 成年在线观看免费人视频草莓| 一级午夜a毛片免费视频| 亚洲五月六月丁香激情| 午夜高清免费在线观看| 在线观看人成视频免费无遮挡| 亚洲国产情侣一区二区三区| 亚洲成a人无码av波多野按摩 | 久久精品国产免费观看三人同眠| 亚洲精品无AMM毛片| 亚洲精品高清无码视频|