<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<!– Database configurations –>
<property name="databaseSchemaUpdate" value="true" />
<!– job executor configurations –>
<property name="jobExecutorActivate" value="false" />
<property name="history" value="audit" />
<property name="transactionManager" ref="transactionManager" />
<!– (databaseType 不用修改,即使连接其他类型数据库) act引擎会自动替换成相应的type,这里加上是因为act不识别hsqldb类型,故直接映射成H2
<property name="databaseType" value="${application.database.type}"/> –>
<!– 生成流程图的字体 –>
<property name="activityFontName" value="宋体" />
<property name="labelFontName" value="宋体" />
<!– //更换id生成策略 <property name="idGenerator"> <bean class="org.activiti.engine.impl.persistence.StrongUuidGenerator"
/> </property> –>
<!– 自动部署 –>
<property name="deploymentResources">
<list>
<value>classpath*:bpmn/*</value>
</list>
</property>
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<bean id="repositoryService" factory-bean="processEngine"
factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine"
factory-method="getRuntimeService" />
<bean id="formService" factory-bean="processEngine"
factory-method="getFormService" />
<bean id="identityService" factory-bean="processEngine"
factory-method="getIdentityService" />
<bean id="taskService" factory-bean="processEngine"
factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine"
factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine"
factory-method="getManagementService" />