# springboot-flowable **Repository Path**: zhangshaohao/springboot-flowable ## Basic Information - **Project Name**: springboot-flowable - **Description**: 手把手实现springboot整合flowable,非常简单【附源码.视频】快速入门教程 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: main - **Homepage**: https://www.bilibili.com/video/BV1fa411j7Q5 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 16 - **Created**: 2023-04-15 - **Last Updated**: 2023-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 手把手实现springboot整合flowable、附源码-视频教程 [GitHub](https://github.com/Rodert/springboot-flowable) | [Gitee](https://gitee.com/rodert/springboot-flowable) [toc] ## 视频教程 点击: ![flowable快速入门-封面](https://ghproxy.com/https://raw.githubusercontent.com/Rodert/springboot-flowable/main/doc/cover.jpg?raw=true) ## 插件安装 BPMN绘图可视化工具 > Flowable BPMN visualizer ## 导入依赖 ```xml org.springframework.boot spring-boot-starter-web org.flowable flowable-spring-boot-starter 6.3.0 mysql mysql-connector-java 5.1.45 ``` ## 新建数据库 database > javapub-flowable2 ## 修改配置 ```yml spring: datasource: url: jdbc:mysql://bj-cdb-mw08tjgs.sql.tencentcdb.com:60042/javapub-flowable2?characterEncoding=UTF-8 username: root password: password driver-class-name: com.mysql.jdbc.Driver flowable: #关闭定时任务JOB async-executor-activate: false database-schema-update: true server: port: 8081 ``` **配置说明:** > database-schema-update: true 数据库更新策略,其取值有四个: ```xml flase: 默认值。activiti在启动时,会对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常。(生产环境常用) true: activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建。(开发时常用) create_drop: 在activiti启动时创建表,在关闭时删除表(必须手动关闭引擎,才能删除表)。(单元测试常用) drop-create: 在activiti启动时删除原来的旧表,然后在创建新表(不需要手动关闭引擎)。 ``` ## 定义流程文件 这里还是用一个开源的流程文件 放在:resources/processes/ExpenseProcess.bpmn20.xml ```xml 报销流程 500}]]> ``` ## 测试 1. 提交流程 > http://localhost:8081/expense/add?userId=123&money=2000 提交成功.流程Id为:2501 2. 待办列表查询 > http://localhost:8081/expense/list?userId=123 Task[id=2507, name=出差报销] 3. 同意 > http://localhost:8081/expense/apply?taskId=2507 processed ok! 4. 生成流程图 > http://localhost:8081/expense/processDiagram?processId=2501 > --- ## 截图 ![image](https://tvax1.sinaimg.cn/large/007F3CC8ly1h2sp53129gj30qk0esacn.jpg) ![image](https://tvax3.sinaimg.cn/large/007F3CC8ly1h2sp5ehtjdj30on0c740p.jpg) ![image](https://tvax4.sinaimg.cn/large/007F3CC8ly1h2sp4gu9jvj31440mo42c.jpg) --- ## 源码领取 公众号:JavaPub flowable ## 源码 源码下载: [https://github.com/Rodert/springboot-flowable](https://github.com/Rodert/springboot-flowable) [https://gitee.com/rodert/springboot-flowable](https://gitee.com/rodert/springboot-flowable) --- 向巨人们致敬! 公众号 --- --- P哥微信: ![微信图片_20220616200142](https://tva1.sinaimg.cn/thumbnail/007F3CC8ly1h3b964cqdjj30e80e8aag.jpg) --- ## 推荐阅读(附源码-附安装视频) `无套路,免费领取` 中国象棋:[下载地址1](https://javapub.blog.csdn.net/article/details/124503370) | [下载地址2](http://javapub.net.cn/project/game/chinese-chess-game.html) 植物大战僵尸:[下载地址1](https://javapub.blog.csdn.net/article/details/124238828) | [下载地址2](http://javapub.net.cn/project/game/plants-vs-zombies-game.html) 俄罗斯方块:[下载地址1](https://javapub.blog.csdn.net/article/details/124471774) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 超级马里奥:[下载地址1](https://javapub.blog.csdn.net/article/details/124463555) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 吃豆人游戏:[下载地址1](https://javapub.blog.csdn.net/article/details/124463461) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 打地鼠:[下载地址1](https://javapub.blog.csdn.net/article/details/124463376) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 捕鱼达人:[下载地址1](https://javapub.blog.csdn.net/article/details/123834030) | [下载地址2](http://javapub.net.cn/project/game/catch-fish-game.html) 打飞机:[下载地址1](https://javapub.blog.csdn.net/article/details/123699508) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 坦克大战:[下载地址1](https://javapub.blog.csdn.net/article/details/123779963) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 1024:[下载地址1](https://javapub.blog.csdn.net/article/details/123832950) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 贪吃蛇:[下载地址1](https://javapub.blog.csdn.net/article/details/123833575) | [下载地址2](http://javapub.net.cn/project/game/super-mario-game.html) 3D赛车:[下载地址1](https://javapub.blog.csdn.net/article/details/124462822) | [下载地址2](http://javapub.net.cn/project/game/3d-racing-game.html) 汇总地址:[下载地址1](https://blog.csdn.net/qq_40374604/category_11788364.html) | [下载地址2](http://javapub.net.cn/category/%E5%B0%8F%E6%B8%B8%E6%88%8F/) ## 当前目录: 1. [springbootfirstdemo 【springboot入门初始化】](https://github.com/Rodert/SpringBoot-javapub/tree/main/springbootfirstdemo) 2. [spring-boot整合MyBatis批量更新](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-mybatis) 3. [spring-boot自定义注解+AOP切面日志](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-annotation ) 4. [spring-boot整合docker打包jar](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-docker) 5. [spring-boot 整合elasticsearch手脚架](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-elasticsearch) 6. [spring-boot整合解析excel](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-excel) 7. [spring-boot实现全链路日志traceId](https://github.com/Rodert/SpringBoot-javapub/tree/main/spring-boot-trace) 8. [springboot整合flowable工作流](https://github.com/Rodert/springboot-flowable) [GitHub](https://github.com/Rodert/springboot-flowable) | [Gitee](https://gitee.com/rodert/springboot-flowable) 9. #### spring 1. [firstSpringProject 【spring初始化工程】](firstSpringProject) 2. [ssm_helloworld_web 【SSM整合】](ssm_helloworld_web)