springboot+activiti7.0之自动部署流程

导包,因为我springboot集合了mybatis,所以activiti要排除

<dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-spring-boot-starter</artifactId>
            <version>7.1.0.M1</version>
            <exclusions>
                <exclusion>
                    <artifactId>mybatis</artifactId>
                    <groupId>org.mybatis</groupId>
                </exclusion>
            </exclusions>
        </dependency>

springboot配置文件yml

activiti:
        #自动检查、部署流程定义文件
        check-process-definitions: true
        #自动更新数据库结构
        database-schema-update: true
        # asyncExecutorActivate是指activiti在流程引擎启动就激活AsyncExecutor,异步:true-开启(默认)、false-关闭
        spring.activiti.async-executor-activate: true
        history-level: full
        db-history-used: true
        #流程定义文件存放目录,要具体到某个目录
        process-definition-location-prefix: classpath:/processes/holliday/
        #process-definition-location-suffixes: #流程文件格式
        #  - **.bpmn20.xml
        #  - **.bpmn

流程图

启动项目:生成25张表

其中部署阶段影响的表有:

ACT_RE_DEPLOYMENT:部署单元信息

ACT_RE_PROCDEF: 已部署的流程定义

ACT_GE_BYTEARRAY: 流程定义的bpmn文件及png文件

具体表含义参考:https://www.cnblogs.com/telwanggs/p/7491564.html

猜你喜欢

转载自www.cnblogs.com/caohanren/p/12795378.html
今日推荐