activiti环境搭建
来源:互联网 发布:wps2016数据分析在哪里 编辑:程序博客网 时间:2024/05/18 03:43
1、ssh和activiti集成
主要是activiti和spring如何结合,整合其实很简单,直接把processEngine当成一个bean就行,让后用processEngine去生成所有的服务bean。就能在系统中需要的地方使用注入流程服务了。
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> <property name="driverClass" value="org.h2.Driver" /> <property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /> <property name="username" value="sa" /> <property name="password" value="" /> </bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="dataSource" ref="dataSource" /> <property name="transactionManager" ref="transactionManager" /> <property name="databaseSchemaUpdate" value="true" /> <property name="mailServerHost" value="localhost" /> <property name="mailServerPort" value="5025" /> <property name="jpaHandleTransaction" value="true" /> <property name="jpaCloseEntityManager" value="true" /> <property name="jobExecutorActivate" value="false" /> </bean> <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> <property name="processEngineConfiguration" ref="processEngineConfiguration" /> </bean> <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" /></beans>2、万恶的历史遗留项目,目前公司系统项目采用spring 2.5,按照上述方法集成activiti会产生MalformedParameterizedTypeException问题
可参考http://blog.csdn.net/ie8848520/article/details/8634479
方法配置解决。
3、我用的activiti版本5.16
使用咖啡兔提供的demo工程里的包没有问题,注意需要 mybatis-3.2.5.jar 和joda-time-2.1.jar两个jar
0 0
- Activiti 开发环境搭建
- activiti环境搭建
- activiti环境搭建
- Activiti环境搭建详解
- 搭建Activiti开发环境
- activiti eclipse开发环境搭建
- Activiti eclipse开发环境搭建
- Activiti入门之环境搭建
- Activiti学习笔记二activiti开发环境搭建
- activiti 入门实例与测试环境搭建
- activiti工作流开发环境的搭建
- activiti工程环境搭建和流程图创建
- 【浅谈Activiti之"开发环境搭建"】
- Activiti学习——环境搭建
- Activiti学习笔记一(环境搭建)
- 第二章、搭建Activiti开发环境
- activiti工程环境搭建和流程图创建
- activiti工程环境搭建和流程图创建
- Hello Android动态加载
- python__博客网络爬虫作业回顾
- 如何编写高效android代码
- 进制转换函数
- ArcGIS10.2.2 Desktop直接连接数据库的具体步骤
- activiti环境搭建
- Java线程join方法
- C++ std::sort导致的core dumped
- 二叉查找树
- Android资料指南
- 20条Linux命令面试问答
- java 字符串占位符替换之字符串占位符实现(java简单模板渲染实现)
- 用NSURLSession的delegate实现接收数据
- Java Web笔记:使用Javascript操作DOM