Files
SIPAIIS_WMS_JSSW/WebRoot/WEB-INF/activiti.cfg.xml
2026-01-16 14:13:44 +08:00

86 lines
4.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:component-scan base-package="org.activiti.conf,org.activiti.rest.editor,org.activiti.rest.service">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
<!-- 单例json对象 -->
<bean id="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper"/>
<!-- 引擎内部提供的UUID生成器依赖fastxml的java-uuid-generator模块 -->
<bean id="uuidGenerator" class="org.activiti.engine.impl.persistence.StrongUuidGenerator" />
<!-- 单独运行的流程引擎 -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<!-- 如果没使用默认的H2数据库就必须设置这项 -->
<property name="databaseType" value="mssql"></property>
<!-- true: 构建流程引擎时,执行检查,如果需要就执行更新。 如果表不存在,就创建 -->
<property name="databaseSchemaUpdate" value="true"></property>
<property name="transactionManager" ref="transactionManager" />
<!-- 连接检查时间 -->
<property name="jdbcMaxCheckoutTime" value="20000" />
<!-- 连接无用后,是否主动连接 -->
<property name="jdbcPingEnabled" value="true" />
<!-- 连接无用检查并连接间隔,单位毫秒 -->
<property name="jdbcPingConnectionNotUsedFor" value="10000" />
<property name="jobExecutorActivate" value="false" />
<!-- 放弃使用系列表ACT_ID_创建同名的视图 -->
<property name="dbIdentityUsed" value="false"/>
<!-- 自动部署 -->
<property name="deploymentResources">
<list>
<value>classpath*:/com/sipai/activiti/deployments/*.zip</value>
</list>
</property>
<!-- 针对根据代码自动生成流程中文乱码-->
<property name="activityFontName" value="宋体"/>
<property name="labelFontName" value="宋体"/>
<!-- 自定义表单字段类型 -->
<property name="customFormTypes">
<list>
<bean class="com.sipai.activiti.form.UsersFormType"/>
</list>
</property>
<!-- JPA -->
<!-- <property name="jpaEntityManagerFactory" ref="entityManagerFactory" />
<property name="jpaHandleTransaction" value="false" />
<property name="jpaCloseEntityManager" value="false" /> -->
<!-- 全局事件 -->
<!-- <property name="typedEventListeners">
<map>
<entry key="VARIABLE_CREATED" >
<list>
<ref bean="variableCreateListener"/>
</list>
</entry>
</map>
</property> -->
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<!-- 7大接口 -->
<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"/>
<!-- 集成REST服务需要的bean -->
<bean id="restResponseFactory" class="org.activiti.rest.service.api.RestResponseFactory" />
<bean id="contentTypeResolver" class="org.activiti.rest.common.application.DefaultContentTypeResolver" />
</beans>