<?xml version= "1.0" encoding= "UTF-8"? ><beans xmlns= "Http://www.springframework.org/schema/beans"Xmlns:context= "Http://www.springframework.org/schema/context"XMLNS:AOP= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" xmlns:tx= "Http://www.springframework.org/schema/tx"xmlns:p= "http://www.springframework.org/schema/p" xmlns:mvc= "Http://www.springframework.org/schema/mvc"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation="http//Www.springframework.org/schema/beanshttp//www.springframework.org/schema/beans/spring-beans.xsdhttp//Www.springframework.org/schema/contexthttp//www.springframework.org/schema/context/spring-context.xsdhttp//WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOPhttp//www.springframework.org/schema/aop/spring-aop.xsdhttp//Www.springframework.org/schema/txhttp//www.springframework.org/schema/tx/spring-tx.xsdhttp//Www.springframework.org/schema/mvchttp//www.springframework.org/schema/mvc/spring-mvc.xsd"> <!--Engine Configuration Object--<bean id=" Processengineconfiguration "class= "Org.activiti.spring.SpringProcessEngineConfiguration" > <property name= "dataSource" ref= "DataSource"/>& lt;! --Use the DataSource---<property name= "Databaseschemaupdate" value= "true"/><!--Activiti to build a table policy in spring --<property name= "TransactionManager" ref= "TransactionManager"/><!--use spring already configured transaction manager--&L T;/bean> <!--processengine objects--<bean id= "Processengine"class= "Org.activiti.spring.ProcessEngineFactoryBean" > <property name= "processengineconfiguration" ref= " Processengineconfiguration "/> </bean> <!--deliver Wokrflow core service to spring Management--<bean id=" repository Service "factory-bean=" Processengine "factory-method=" Getrepositoryservice "/> <bean id=" RuntimeService "facto Ry-bean= "Processengine" factory-method= "Getruntimeservice"/> <bean id= "Taskservice" factory-bean= " Processengine "factory-method=" Gettaskservice "/> <bean id=" Historyservice "factory-bean=" processEngine "facto ry-method= "Gethistoryservice"/> <bean id= "Managementservice" factory-bean= "Processengine" factory-method= " Getmanagementservice "/> <!--Business Services-<bean id=" WorkflowService "class= "Com.tabchanj.crm.service.impl.WorkFlowServiceImpl" > <property name= "repositoeyservice" ref= " Repositoryservice "></property> <property name=" Runtimeservice "ref=" Runtimeservice "></property > </bean> </beans>
Integration of "Activiti" Activiti with spring