【流程引擎-flowable 一】流程引擎概要
环境
- jdk 11
- springboot 2.7.6
- flowable 6.8.0
- mysql 8.0.27
创建springboot项目
1、pom文件依赖
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<spring-boot.version>2.7.6</spring-boot.version>
<flowable.version>6.8.0</flowable.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
<!--flowable 依赖-->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter</artifactId>
<version>${flowable.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
2、springboot配置文件
server:
port: 8088
spring:
datasource:
username: root
password: 123456
url: jdbc:mysql://localhost:3306/flowable?serverTimezone=Asia/Shanghai&useSSL=false
flowable:
activity-font-name: 宋体
label-font-name: 宋体
annotation-font-name: 宋体
logging:
level:
org.flowable: DEBUG
3、创建mysql数据库,库名:flowable
画流程图
1、通过在线工具画简单的请假流程
- 工具地址:http://www.bpmnmodeler.com/
- 流程图:
本文来自博客园,作者:蓝迷梦,转载请注明原文链接:https://www.cnblogs.com/hewei-blogs/articles/18001370

浙公网安备 33010602011771号