<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.

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

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

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

    在開發(fā)指南中有相關(guān)整合章節(jié):

    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' 閱讀(2168) 評論(2)  編輯  收藏

    Feedback

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

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


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


    網(wǎng)站導(dǎo)航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    jj
    主站蜘蛛池模板: 久久精品7亚洲午夜a| 国产yw855.c免费视频| 亚洲国产精品久久久久网站 | 亚洲人成在线精品| 99在线观看精品免费99| 久久久久亚洲AV无码专区首JN| 国产麻豆一精品一AV一免费| 亚洲第一中文字幕| 国产在线观看麻豆91精品免费| 亚洲中字慕日产2020| 最新欧洲大片免费在线| 亚洲另类无码专区丝袜| 国产a级特黄的片子视频免费| 日韩在线观看免费| 亚洲精品制服丝袜四区| 四虎影视在线影院在线观看免费视频| 亚洲一区中文字幕久久| 男女做羞羞的事视频免费观看无遮挡| 亚洲一区二区无码偷拍| 国产yw855.c免费视频| 中文字幕无线码中文字幕免费| 香蕉蕉亚亚洲aav综合| 99在线视频免费观看视频| 亚洲av永久无码精品网址| 亚洲另类少妇17p| 国产精品免费看久久久| 亚洲一卡2卡4卡5卡6卡残暴在线| 午夜电影免费观看| www免费黄色网| 91亚洲自偷手机在线观看| 狼友av永久网站免费观看| 久久国产一片免费观看| 亚洲精品自拍视频| 国产精品jizz在线观看免费| 99久久99这里只有免费的精品| 亚洲精品动漫在线| 亚洲国产成人a精品不卡在线| 亚洲视频在线观看免费| 亚洲av永久无码精品秋霞电影秋| 亚洲精品少妇30p| 97人伦色伦成人免费视频|