目标
camunda框架与springboot的集成
介绍
Camunda是基于Java语言,支持BPMN标准的工作流和流程自动化框架,并且还支持CMMN规范,DMN规范。具体组件如下图(引用官方图):
需要了解更多的细节请移步官网:官方文档 GitHub
本文重点(入门camunda与springboot集成)
- 首先新建一个springboot工程
- 用idea打开下载好的项目, 在pom文件导入camunda的依赖
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<version>7.13.0</version>
</dependency>
- 配置数据源, 后直接运行项目就集成成功啦!会自动创建工作流的表
spring:
datasource:
url: jdbc:mysql://localhost:3306/camunda?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
下一篇将跑起一个流程