Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
- <!-- Activiti process engine configuration -->
- <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
- <property name="dataSource" ref="dataSource" />
- <property name="transactionManager" ref="transactionManager" />
- <property name="databaseSchemaUpdate" value="false" />
- <property name="jobExecutorActivate" value="false" />
- <property name="customSessionFactories">
- <list>
- <bean class="myapp.manager.ActivitiUserManagerFactory" />
- <bean class="myapp.manager.ActivitiGroupManagerFactory" />
- </list>
- </property>
- <property name="mailServerHost" value="xxx.xxx.com" />
- <property name="mailServerPort" value="xxx" />
- <property name="mailServerDefaultFrom" value="xxx@xxx" />
- <property name="mailServerUsername" value="xxx@xxx.com" />
- <property name="mailServerPassword" value="xxxx" />
- </bean>
- <!-- Activiti process engine -->
- <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
- <property name="processEngineConfiguration" ref="processEngineConfiguration" />
- </bean>
- <!-- Activiti services -->
- <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
- <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
- <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="identityService" factory-bean="processEngine" factory-method="getIdentityService" />
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement