<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
    主站蜘蛛池模板: 国产成人免费高清激情明星| 午夜精品射精入后重之免费观看 | 国产91在线|亚洲| 无码国产精品一区二区免费16 | 日韩亚洲AV无码一区二区不卡 | 亚洲色大成网站www| 成人免费一区二区无码视频| 亚洲乱码一二三四五六区| 97免费人妻无码视频| 精品丝袜国产自在线拍亚洲| 国产成在线观看免费视频| 亚洲色丰满少妇高潮18p| 青青草国产免费久久久91| 色偷偷亚洲第一综合| 可以免费观看一级毛片黄a| 日日摸夜夜添夜夜免费视频| 亚洲午夜AV无码专区在线播放| 人人爽人人爽人人片av免费| 国产亚洲色婷婷久久99精品91| APP在线免费观看视频| 亚洲综合久久成人69| 成人毛片18女人毛片免费视频未 | 在线免费视频一区| 免费国产在线精品一区| 亚洲日韩av无码| 亚洲高清视频免费| 亚洲国产精品无码中文lv| www.亚洲一区| 亚洲免费在线视频| 亚洲一区二区三区在线观看网站| 四虎影永久在线高清免费| 日韩电影免费在线观看网站| 亚洲欧洲国产精品久久| 国产成人免费全部网站| 国产又黄又爽胸又大免费视频| 亚洲人成网站影音先锋播放| 毛片a级毛片免费观看免下载 | 波多野结衣免费在线| 免费的黄网站男人的天堂| 亚洲av激情无码专区在线播放| 久久久久久久久免费看无码|