最近还是要跟spring源码与低代码的相关技术-工作流硬杠。
1、idea安装插件 maven archeType
2、添加JFrog
3、创建project,找到 camunda-springboot,创建工程。
4、h2改mysql数据源,报错数据库表不存在,问题是 mysql connector的版本不匹配(8.x),要改成5.1.*。
5、启动工程 localhost:8080端口。
下载 camunda moder工具,画流程图。加油。
Camunda Modeler5.0,部署地址
Camunda Modeler3.0,部署地址
modeler版本必须与camunda代码版本一致,否则报错
Spring Boot Starter version | Camunda Platform version | Spring Boot version |
---|---|---|
1.0.0* | 7.3.0 | 1.2.5.RELEASE |
1.1.0* | 7.4.0 | 1.3.1.RELEASE |
1.2.0* | 7.5.0 | 1.3.5.RELEASE |
1.2.1* | 7.5.0 | 1.3.6.RELEASE |
1.3.0* | 7.5.0 | 1.3.7.RELEASE |
2.0.0** | 7.6.0 | 1.4.2.RELEASE |
2.1.x** | 7.6.0 | 1.5.3.RELEASE |
2.2.x** | 7.7.0 | 1.5.6.RELEASE |
2.3.x | 7.8.0 | 1.5.8.RELEASE |
3.0.x | 7.9.0 | 2.0.x.RELEASE |
3.1.x | 7.10.0 | 2.0.x.RELEASE |
3.2.x | 7.10.0 | 2.1.x.RELEASE |
3.3.1+ | 7.11.0 | 2.1.x.RELEASE |
3.4.x | 7.12.0 | 2.2.x.RELEASE |
7.13.x 7.13.3+*** | 7.13.x 7.13.3+ | 2.2.x.RELEASE 2.3.x.RELEASE |
7.14.x 7.14.2+*** | 7.14.x 7.14.2+ | 2.3.x.RELEASE 2.4.x |
7.15.x 7.15.3+*** | 7.15.x 7.15.3+ | 2.4.x 2.5.x |
7.16.x 7.16.3+*** | 7.16.x 7.16.3+ | 2.5.x 2.6.x |
生成代码的脚手架地址Camunda Platform InitializrCamunda Platform + Spring Boot in Secondshttps://start.camunda.comSetup a Spring Boot Project | docs.camunda.orgdocumentation of the Camunda Platform 7https://docs.camunda.org/get-started/spring-boot/project-setup/7.15.0为例:
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.4.3</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-bom</artifactId> <version>7.15.0</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement>