Activiti引擎的流程配置文件
流程配置文件分为2种:
Activiti配置文件:
使用activiti.cfg.xml文件配置
<!-- 流程引擎的配置对象 使用h2数据库 首先定义一个id为processEngineConfiguration的bean的对象,即Activiti默认的引擎配置管理器名称 接着指定一个具体的Java类,由Spring负责实例化引擎配置管理器并注入下面的一系列配置 --> <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"> <property name="databaseType" value="h2"/> <property name="databaseSchemaUpdate" value="true"/> <!-- 或name="create" --> <property name="jobExecutorActivate" value="true"/> <property name="history" value="full"/> </bean>
Spring配置文件:
使用activiti-context.xml文件配置