新版本中,我们通过实验可以发现IdentityService,FormService两个Serivce都已经删除。
1、activiti.cfg.xml
引擎配置文件,包括:ProcessEngineConfiguration的定义、数据源定义、事务管理器等,其实就是一个spring配置文件。
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/contex http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3306/activiti?serverTimezone=UTC" /> <property name="username" value="root" /> <property name="password" value="123456" /> bean> <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> <property name="dataSource" ref="dataSource">property> <property name="databaseSchemaUpdate" value="true"/> bean>beans>
2、ProcessEngineConfiguration
流程引擎的配置类,通过ProcessEngineConfiguration可以创建工作流引擎ProceccEngine。
有两种配置方式:
<