jeecgboot3.6.1集成flowable7工作流

flowable是一个热门的工作流引擎。 本文记录jeecgboot3.6.1版本如何集成flowable模块。 开展自己工作流引擎。

安装步骤

1.在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排除,或者会报错

2.jeecg-module-flowable模块的依赖
<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-spring-boot-starter</artifactId>
</dependency>
3.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
4.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
扩展

更多关于工作流的知识,请访问www.jeecgflow.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值