Java_Activiti5 _ cainiao also learns Activiti5 workflow _ integration with Spring (3), activiti5 workflow tutorial

Source: Internet
Author: User

Java_Activiti5 _ cainiao also learns Activiti5 workflow _ integration with Spring (3), activiti5 workflow tutorial

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" 4 xmlns: context = "http://www.springframework.org/schema/context" 5 xmlns: tx = "http://www.springframework.org/schema/tx" 6 xsi: schemaLocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 7 http://www.springframework.org/schem A/context http://www.springframework.org/schema/context/spring-context-3.1.xsd 8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd "> 9 10 <! -- Configure the data source --> 11 <bean id = "dataSource" class = "org. springframework. jdbc. datasource. simpleDriverDataSource "> 12 <property name =" driverClass "value =" com. mysql. jdbc. driver "/> 13 <property name =" url "value =" jdbc: mysql: // localhost: 3306/db_activiti? UseUnicode = true & amp; characterEncoding = UTF-8 "/> 14 <property name =" username "value =" root "/> 15 <property name =" password "value =" root "/> 16 </bean> 17 18 <! -- Configure the data source Transaction Manager --> 19 <bean id = "transactionManager" class = "org. springframework. jdbc. datasource. dataSourceTransactionManager "> 20 <property name =" dataSource "ref =" dataSource "/> <! -- Reference the above data source --> 21 </bean> 22 23 <! -- Configure the flow engine configuration class note: this is the use of org. activiti. spring. springProcessEngineConfiguration class --> 24 <bean id = "processEngineConfiguration" class = "org. activiti. spring. springProcessEngineConfiguration "> 25 <property name =" dataSource "ref =" dataSource "/> 26 <property name =" transactionManager "ref =" transactionManager "/> 27 <property name =" databaseSchemaUpdate "value =" true "/> 28 <property name =" jobexecut1_tivate "value =" fa Lse "/> 29 <property name =" createDiagramOnDeploy "value =" false "/> <! -- Whether to generate a process definition image --> 30 </bean> 31 32 <! -- Configure the Process Engine Factory --> 33 <bean id = "processEngine" class = "org. activiti. spring. processEngineFactoryBean "> 34 <property name =" processEngineConfiguration "ref =" processEngineConfiguration "/> 35 </bean> 36 37 <! -- Configure to inject some services --> 38 <bean id = "repositoryService" factory-bean = "processEngine" factory-method = "getRepositoryService"/> 39 <bean id = "runtimeService" factory -bean = "processEngine" factory-method = "getRuntimeService"/> 40 <bean id = "taskService" factory-bean = "processEngine" factory-method = "getTaskService"/> 41 <bean id = "historyService" factory-bean = "processEngine" factory-method = "getHistoryService"/> 42 <bean Id = "managementService" factory-bean = "processEngine" factory-method = "getManagementService"/> 43 44 <! -- Configure activiti rules --> 45 <bean id = "activitiRule" class = "org. activiti. engine. test. activitiRule "> 46 <property name =" processEngine "ref =" processEngine "/> 47 </bean> 48 49 </beans>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.