applicationContext-workflow.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  9. http://www.springframework.org/schema/aop
  10. http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
  11. <bean id="processEngineConfiguration"
  12. class="org.activiti.spring.SpringProcessEngineConfiguration">
  13. <property name="dataSource" ref="dataSource" />
  14. <property name="transactionManager" ref="transactionManager" />
  15. <property name="databaseSchemaUpdate" value="" />
  16. <property name="jobExecutorActivate" value="false" />
  17. <property name="history" value="full" />
  18. <property name="deploymentResources">
  19. <list>
  20. <!-- <value>classpath*:/deployments/*.bpmn</value> -->
  21. </list>
  22. </property>
  23. <property name="customSessionFactories">
  24. <list>
  25. <bean class="com.xtframe.core.wf.MyUserEntityManagerFactory">
  26. <property name="userEntityManager" ref="myUserEntityManager" />
  27. </bean>
  28. <bean class="com.xtframe.core.wf.MyGroupEntityManagerFactory">
  29. <property name="groupEntityManager" ref="myGroupEntityManager" />
  30. </bean>
  31. </list>
  32. </property>
  33. </bean>
  34. <bean id="myUserEntityManager" class="com.xtframe.core.wf.MyUserEntityManager" />
  35. <bean id="myGroupEntityManager" class="com.xtframe.core.wf.MyGroupEntityManager" />
  36. <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
  37. <property name="processEngineConfiguration" ref="processEngineConfiguration" />
  38. </bean>
  39. <bean id="repositoryService" factory-bean="processEngine"
  40. factory-method="getRepositoryService" />
  41. <bean id="runtimeService" factory-bean="processEngine"
  42. factory-method="getRuntimeService" />
  43. <bean id="formService" factory-bean="processEngine"
  44. factory-method="getFormService" />
  45. <bean id="identityService" factory-bean="processEngine"
  46. factory-method="getIdentityService" />
  47. <bean id="taskService" factory-bean="processEngine"
  48. factory-method="getTaskService" />
  49. <bean id="historyService" factory-bean="processEngine"
  50. factory-method="getHistoryService" />
  51. <bean id="managementService" factory-bean="processEngine"
  52. factory-method="getManagementService" />
  53. </beans>