# Spring-activiti **Repository Path**: javaeye007/Spring-activiti ## Basic Information - **Project Name**: Spring-activiti - **Description**: Spring平台整合activiti工作流引擎实例 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2211 - **Created**: 2018-05-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring-activiti 在常用的ERP系统、OA系统的开发中,工作流引擎是一个必不可少的工具。本项目旨在基于Spring这一平台,整合业界流行的工作流引擎Activiti,并建立了两个完整的工作流进行演示:请假OA和采购流程。 其中包含的内容如下: 1.不采用activiti自带的用户、角色功能,因为过于简单,转而自行实现一个用户、角色、权限的三级结构,用户到角色,角色到权限均为多对多映射,持久层框架使用mybatis的collection和association标签嵌套实现; 2.使用默认的用户登录后(用户名xiaomi,密码1234),可看到已部署好的两个流程,请假OA和采购流程,其中,请假OA包含了用户任务、排他网关、起始结束事件,较为简单;采购流程除此之外,还使用了异常结束事件、子流程和边界事件的使用; 3.两个流程均包含了待办任务签收、运行流程进度追踪、已运行完流程历史记录查看的功能,运行流程进度在流程图中以红色标注; 4.使用时,将流程数据和业务数据相分离,使用业务号(businessKey)建立关联流程数据和业务数据的桥梁,使其相互可以访问,业务数据的主键即为业务号; 5.本系统所有表单均使用普通表单,而不是activiti的动态表单和外置表单,这样做是为了分表存放业务数据和流程数据; 6.系统前端采用基于Bootstrap的模板devoops建立。https://github.com/shenzhanwang/devoops 7.起始页面入口:http://localhost:8080/Spring-activiti/login 使用前,编译(可直接在myeclipse完成): ``` mvn clean install ``` 8.效果图: ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081734_f50ccb20_1110335.jpeg "在这里输入图片标题") ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081747_e412ab52_1110335.jpeg "在这里输入图片标题") ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081802_2f2bf64c_1110335.jpeg "在这里输入图片标题") ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081810_cbd63187_1110335.jpeg "在这里输入图片标题") ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081820_97a18226_1110335.jpeg "在这里输入图片标题") ![输入图片说明](http://git.oschina.net/uploads/images/2016/1116/081830_8767776b_1110335.jpeg "在这里输入图片标题") ### 附录:个人作品索引目录(持续更新) #### 基本篇 1. [SpringMVC,Mybatis,Spring三大框架的整合实现增删改查](https://gitee.com/shenzhanwang/SSM) 2. [Struts2,Hibernate,Spring三大框架的整合实现增删改查](https://gitee.com/shenzhanwang/S2SH) 3. [Spring,SpringMVC和Hibernate的整合实现增删改查](https://gitee.com/shenzhanwang/SSH) 4. [Spring平台整合activiti工作流引擎实现OA开发](https://gitee.com/shenzhanwang/Spring-activiti) 5. [Spring发布与调用REST风格的WebService](https://gitee.com/shenzhanwang/Spring-REST) 6. [Spring整合Apache Shiro框架,实现用户管理和权限控制](https://gitee.com/shenzhanwang/Spring-shiro) 7. [使用Spring security做权限控制](https://gitee.com/shenzhanwang/spring-security-demo) #### 中级篇 8. [Spring连接mongoDB数据库实现增删改查](https://gitee.com/shenzhanwang/Spring-mongoDB) 9. [Spring连接Redis实现缓存](https://gitee.com/shenzhanwang/Spring-redis) 10. [Spring连接图存数据库Neo4j实现增删改查](https://gitee.com/shenzhanwang/Spring-neo4j) 11. [Spring平台整合消息队列ActiveMQ实现发布订阅、生产者消费者模型(JMS)](https://gitee.com/shenzhanwang/Spring-activeMQ) 12. [Spring整合消息队列RabbitMQ实现四种消息模式(AMQP)](https://gitee.com/shenzhanwang/Spring-rabbitMQ) 13. Spring整合Jasig CAS框架实现单点登录(未开源) 14. Spring框架的session模块实现集中式session管理(未开源) 15. [Spring整合websocket实现即时通讯](https://gitee.com/shenzhanwang/Spring-websocket) 16. 使用Spring boot整合mybatis,rabbitmq,redis,mongodb实现增删改查(未开源) 17. [Spring MVC整合FastDFS客户端实现文件上传](https://gitee.com/shenzhanwang/Spring-fastdfs) #### 高级篇 18. 搭建zookeeper集群提供目录服务(未开源) 19. 使用ubuntu+apache+SVN+SVNadmin+maven+Nexus+Hudson搭建持续集成环境(未开源) 20. Spring框架整合dubbo框架实现分布式服务治理(SOA架构)(未开源) 21. Spring框架整合dubbox实现微服务架构(MSA架构)(未开源) 22. 使用Spring Cloud实现微服务架构(MSA架构)(未开源) 23. 使用FastDFS搭建分布式文件系统(高可用、负载均衡)(未开源) 24. 搭建高可用nginx集群和Tomcat负载均衡(未开源) 25. 搭建可扩展的ActiveMQ高可用集群(未开源) 26. 实现Mysql数据库的主从复制、读写分离、分表分库、负载均衡和高可用(未开源) 27. 搭建高可用redis集群实现分布式缓存(未开源) 28. [Spring整合SolrJ实现全文检索](https://gitee.com/shenzhanwang/Spring-solr) ### 捐赠,私信索取未开源代码 ![输入图片说明](https://gitee.com/uploads/images/2017/1217/145453_b639d3db_1110335.png "mm_facetoface_collect_qrcode_1513493342741.png") ![输入图片说明](https://gitee.com/uploads/images/2017/1217/145502_2d4fe513_1110335.jpeg "1513493369523.jpg")