<!-- Activiti uuid support,by fastxml with java-uuid-generator -->
<bean id="uuidGenerator" class="org.activiti.engine.impl.persistence.StrongUuidGenerator" />
<!-- Activiti begin -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
<property name="history" value="full" />
<property name="processDefinitionCacheLimit" value="10" />
<property name="idGenerator" ref="uuidGenerator" /><!-- 使用uuid生成id -->
<property name="activityFontName" value="宋体" />
<property name="labelFontName" value="宋体" />
<property name="createDiagramOnDeploy" value="true" /><!-- 自动创建图片 -->
</bean>
<!-- Activiti核心接口入口 -->
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /><!-- Activiti的资源操作接口 -->
<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" /><!-- 管理接口 -->
```
Created
June 8, 2016 01:37
-
-
Save repoplus/4ae0b4b4f880dde6434444c97d69212a to your computer and use it in GitHub Desktop.
activiti配置文件
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment