jeecgboot3.6.1集成flowable7工作流

1,948 阅读1分钟

引言

flowable是一个热门的工作流引擎。 本文记录jeecgboot3.6.1版本如何集成flowable模块。 开展自己工作流引擎。
BPMN在线建模
jeecgflow演示站

安装

  • 在jeecgboot父pom.xml , 新增maven依赖

<flowable.spring-boot.version>6.7.2</flowable.spring-boot.version>
<dependencyManagement>
    <dependencies>
        <!--以下是所需的依赖文件-->
        <dependency>
            <groupId>org.flowable</groupId>
            <artifactId>flowable-spring-boot-starter</artifactId>
            <version>${flowable.spring-boot.version}</version>
             <exclusions>
                <exclusion>
                    <groupId>org.mybatis</groupId>
                    <artifactId>mybatis</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

    </dependencies>
</dependencyManagement>

因为flowable包含了mybatis,但我已经引入了mybatis,所以这里把mybatis排除,或者会报错。

  • jeecg-module-flowable模块的依赖
 <dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-spring-boot-starter</artifactId>
</dependency>
  • application.yml配置
flowable:
  #关闭定时任务JOB
  async-executor-activate: false
  #将databaseSchemaUpdate设置为true。当flowable发现库与数据库表结构不一致时,会自动将数据库表结构升级至新版本。
  database-schema-update: true
  # 自动部署验证设置:true-开启(默认)、false-关闭
  check-process-definitions: false
  #保存历史数据级别设置为full最高级别,便于历史数据的追溯
  history-level: full
  • mysql配置->nullCatalogMeansCurrent=true
url: jdbc:mysql://rxxx/jeecg-camunda?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
//需要在尾部追加nullCatalogMeansCurrent=true
//如果不追加, 可能会出现cause: java.sql.SQLSyntaxErrorException: Table 'jeecg-camunda.act_ge_property' doesn't exist

扩展

jeecgboot3.6.1集成activiti
jeecgboot3.6.1集成camunda
jeecgboot3.6.1集成flowable视频教程-B站
jeecgboot3.6.1集成activiti视频教程-B站
jeecgboot3.6.1集成camunda视频教程-B站