1. 搭建开发环境

   1.1 拷贝jar

   1.2 运行mysql数据库脚本

   1.3 在classpath路径下创建activiti.cfg.xml,代码如下:


  
    
    
    
    
                           
    
    
    
    
  

   1.4 创建测试类,获取流程引擎ProcessEngine

package com.bpm.engine;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.junit.Test;
public class EngineTest {
    ProcessEngine pe;
    public EngineTest(){
        pe = ProcessEngines.getDefaultProcessEngine();
    }
    @Test
    public void test() {
        System.out.println(pe);
    }
}

   console界面:

org.activiti.engine.impl.ProcessEngineImpl@5e222e