679
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<!-- 数据库连接池 -->
<property name="dataSource" ref="dataSource" />
<!-- 事务 -->
<property name="transactionManager" ref="transactionManager" />
<!-- 数据库自动升级 true/ignore-->
<property name="databaseSchemaUpdate" value="ignore" />
<!-- 作业执行器 -->
<property name="jobExecutorActivate" value="false" />
<!-- 生成流程图的字体 -->
<property name="activityFontName" value="宋体" />
<property name="labelFontName" value="宋体" />
<property name="annotationFontName" value="宋体" />
<!-- 注入自定义工厂类,用户扩展用户与组 -->
<property name="customSessionFactories">
<list>
<bean class="com.sitech.miso.ecosp.bpm.ext.identity.ExtUserEntityManagerFactory"/>
<bean class="com.sitech.miso.ecosp.bpm.ext.identity.ExtGroupEntityManagerFactory"/>
</list>
</property>
<property name="customMybatisMappers">
<set>
<value>com.sitech.miso.ecosp.bpm.ext.identity.ecospbase.EcospBaseMapper</value>
</set>
</property>
</bean>
<!-- 注入自定义用户与组的管理器 -->
<bean id="extUserEntityManager" class="com.sitech.miso.ecosp.bpm.ext.identity.ExtUserEntityManager"/>
<bean id="extGroupEntityManager" class="com.sitech.miso.ecosp.bpm.ext.identity.ExtGroupEntityManager"/>
<!-- 注入对接第三方用户与组的处理器 -->
<bean id="thirdIdentityHandler" class="com.sitech.miso.ecosp.bpm.ext.identity.ecospbase.EcospBaseIdentityHandler"/>
<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" />
<bean id="activitiNativeFactory" class="com.sitech.miso.ecosp.bpm.ActivitiNativeFactory" init-method="init">
<property name="processEngine" ref="processEngine"/>
</bean>
<!-- 工作流流程处理服务-->
<bean id="bpmService" class="com.sitech.miso.ecosp.bpm.api.impl.BpmServiceImpl" />
</beans>