# flowable-springboot-demo **Repository Path**: MissJin/flowable-springboot-demo ## Basic Information - **Project Name**: flowable-springboot-demo - **Description**: 工作流的一个demo: flowable 6.6.0, springboot2,mongodb4.0, 适合初学者了解flowable怎么使用。 开发中的实际运用场景:各种流程,工作流,审批流,能很好的接入; 分支:flowable-mongodb 演示如何把流程数据整合到mongodb中 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 18 - **Forks**: 15 - **Created**: 2019-12-06 - **Last Updated**: 2025-01-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### flowable-springboot-demo #### 工作流,可对比activiti,前6.0都是出自同一团队,后面版本activiti不维护了 #### 版本 - flowable 6.6.0 - springboot 2.2.1 - mysql 8+(运行项目后,会自动创建flowable的数据表) ### 切换到分支 flowable-mongodb,你会发现新大陆 ### 相关资料 - [flowable 官方文档](https://www.flowable.org/docs/userguide/index.html#springBootFlowableStarter) - [flowable 6.6中文文档](https://tkjohn.github.io/flowable-userguide/#_introduction) - [flowable 学习总结](https://www.jianshu.com/p/799b1ebf5dc4?tdsourcetag=s_pctim_aiomsg) - [TaskService](https://www.jianshu.com/p/dfad80be1dbf) ### 流程图(案例) ![报销流程图](doc/expense/expense-process.jpg) ### 演示 #### 创建报销单 ``` # 地址 localhost:8088/expense/add # 参数 { "userId": "str", "money": 200 } ``` #### 查询用户的现有的任务(列表) ``` # 地址 localhost:8088/common/listTaskByUserId # 参数 userId: str ``` #### 查询用户的报销流程(图) ``` # 地址 localhost:8088/common/genProcessDiagramByProcessId # 参数 processId: 2dbd77f5-0138-11eb-b480-005056c00001 ``` - 未审批时候的报销流程图 ![未审批时候的报销流程图](doc/expense/not_start_audit.jpg) - 到达老板的审批流程图 ![到达老板的审批流程图](doc/expense/boss_audit.jpg) - 到达经理审批的流程图 ![到达经理审批的流程图](doc/expense/manager_audit.jpg) #### 经理审批 ``` # 地址 localhost:8088/expense/apply # 参数 taskId: b3e8b516-013c-11eb-911d-005056c00001 isPass: true ```