【流程引擎-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、通过在线工具画简单的请假流程

posted @ 2024-02-01 15:26  蓝迷梦  阅读(23)  评论(0)    收藏  举报