Advertisement
Guest User

activity-config

a guest
Jan 21st, 2013
1,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.14 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xmlns:context="http://www.springframework.org/schema/context"
  4.     xsi:schemaLocation="
  5.             http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  6.             http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  7.  
  8.     <!-- Activiti process engine configuration -->
  9.     <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
  10.         <property name="dataSource" ref="dataSource" />
  11.         <property name="transactionManager" ref="transactionManager" />
  12.         <property name="databaseSchemaUpdate" value="false" />
  13.         <property name="jobExecutorActivate" value="false" />
  14.         <property name="customSessionFactories">
  15.             <list>
  16.                 <bean class="myapp.manager.ActivitiUserManagerFactory" />
  17.                 <bean class="myapp.manager.ActivitiGroupManagerFactory" />
  18.             </list>
  19.         </property>
  20.         <property name="mailServerHost" value="xxx.xxx.com" />
  21.         <property name="mailServerPort" value="xxx" />
  22.         <property name="mailServerDefaultFrom" value="xxx@xxx" />
  23.         <property name="mailServerUsername" value="xxx@xxx.com" />
  24.         <property name="mailServerPassword" value="xxxx" />
  25.  
  26.     </bean>
  27.  
  28.     <!-- Activiti process engine -->
  29.     <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
  30.         <property name="processEngineConfiguration" ref="processEngineConfiguration" />
  31.     </bean>
  32.  
  33.     <!-- Activiti services -->
  34.     <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
  35.     <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
  36.     <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
  37.     <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
  38.     <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
  39.     <bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService" />
  40. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement