Camunda工作流引擎简单入门 – Tom

Camunda工作流引擎简单入门 - Tom

官网:https://camunda.com/

官方文档:https://docs.camunda.org/get-started/spring-boot/project-setup/

阅读新体验:http://www.zhouhong.icu/post/155

一、简介

    Camunda是一个工作流引擎,执行Bpmn2.0标准,因此依赖于基于bpmn的流程图(本质上是一个xml文件)

二、一个完整的报销 demo 入门

1、创建一个SpringBoot项目,导入数据库依赖、Camunda 等依赖
 1         <dependency>
 2             <groupId>org.springframework.boot</groupId>
 3             <artifactId>spring-boot-starter-web</artifactId>
 4         </dependency>
 5         <dependency>
 6             <groupId>org.mybatis.spring.boot</groupId>
 7             <artifactId>mybatis-spring-boot-starter</artifactId>
 8             <version>2.2.0</version>
 9         </dependency>
10 
11         <!-- https://mvnrepository.com/artifact/org.camunda.bpm.springboot/camunda-bpm-spring-boot-starter-webapp -->
12         <dependency>
13             <groupId>org.camunda.bpm.springboot</groupId>
14             <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
15             <version>3.4.4</version>
16         </dependency>
17         <!-- https://mvnrepository.com/artifact/org.camunda.bpm.springboot/camunda-bpm-spring-boot-starter-rest -->
18         <dependency>
19             <groupId>org.camunda.bpm.springboot</groupId>
20             <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
21             <version>3.4.4</version>
22         </dependency>
23 
24         <dependency>
25             <groupId>mysql</groupId>
26             <artifactId>mysql-connector-java</artifactId>
27             <scope>runtime</scope>
28         </dependency>
29         <dependency>
30             <groupId>org.projectlombok</groupId>
31             <artifactId>lombok</artifactId>
32             <optional>true</optional>
33         </dependency>
34         <dependency>
35             <groupId>org.springframework.boot</groupId>
36             <artifactId>spring-boot-starter-test</artifactId>
37             <scope>test</scope>
38         </dependency>
39         <dependency>
40             <groupId>junit</groupId>
41             <artifactId>junit</artifactId>
42             <version>4.13.2</version>
43         </dependency>
44         <dependency>
45             <groupId>com.aliyun</groupId>
46             <artifactId>aliyun-java-sdk-ecs</artifactId>
47             <version>4.17.6</version>
48         </dependency>
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » Camunda工作流引擎简单入门 – Tom