摘要

将业务数据与camunda工作流整合至springboot项目

正文

整个camunda的绘图、具体使用,参照上一篇文章Camunda工作流引擎简记

源码地址,相关技术储备如下

  1. springboot--v2.5.4
  2. jpa--v2.5.4
  3. h2--v1.4.200
  4. camunda--v7.16.0

整个过程不需要建表,所见即所得!这就是JPA面向对象编程的好处,这也是我认为JPA优于Mybatis的地方。

虽然我两种都用,但应用实际demo,JPA的速度远超Mybatis。

一、展示效果

1.) 启动项目

image-20221124143906458.png

2.) 访问http://localhost:9999/,账号密码均为demo,可以找到最终流程图。

image-20221124144055173.png

3.) 访问http://localhost:9999/swagger-ui/index.html,调用接口,体验整个流程。

image-20221124144225583.png

二、参考致谢

  1. xiaojing5576/workflow: 基于camunda实现的工作流设计
  2. FuriousPws002/camunda-bpm-spring-boot-example: Spring Boot and database integration camunda bpmn