JBPM+SSH整合

整合需要jar包文件

juel-*.jar  mail.jar \ jbpm.jar

 

classpath 下面确保文件

jbpm.cfg.xml

内容

<?xml version="1.0" encoding="UTF-8"?>
    <jbpm-configuration>
        <process-engine-context>
            <string name="spring.cfg" value="applicationContext.xml" />
        </process-engine-context>
        <import resource="jbpm.default.cfg.xml" />
        <import resource="jbpm.tx.spring.cfg.xml" />
        <import resource="jbpm.jpdl.cfg.xml" />
        <import resource="jbpm.bpmn.cfg.xml" />
        <import resource="jbpm.identity.cfg.xml" />
        <import resource="jbpm.businesscalendar.cfg.xml" />
        <import resource="jbpm.console.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" />
  -->

    </jbpm-configuration>


application配置

 <!--jbpm4.4 工作流   -->

    <bean id = "springHelper" class = "org.jbpm.pvm.internal.processengine.SpringHelper" >
       <property name = "jbpmCfg" value = "jbpm.cfg.xml" />
    </bean>
    <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine"/>

 

 

<property name="mappingLocations"> 
            <list> 
                <!-- 以下几个jbpm.*.hbm.xml由jBPM自带,在jbpm.jar中 --> 
                <value>classpath:jbpm.repository.hbm.xml</value>    
                <value>classpath:jbpm.execution.hbm.xml</value>    
                <value>classpath:jbpm.history.hbm.xml</value>    
                <value>classpath:jbpm.task.hbm.xml</value>    
                <value>classpath:jbpm.identity.hbm.xml</value>  
            </list> 
        </property>

 

你可能感兴趣的:(jbpm)