天天看點

flowable 流程設計器_37、Springboot內建Flowable

工作流是OA系統不可或缺的一部分,今天介紹一款新的工作流引擎flowable。flowable 是著名 Java 工作流引擎 Activiti 的原作者從 Activiti 分支建立的新工作流引擎。flowable 是一個業務流程管理(BPM)和工作流系統,适用于開發人員和系統管理者。其核心是超快速,穩定的BPMN2流程引;易于與 Spring內建使用。

1、Flowable 設計器Flowable Designer安裝

flowable 流程設計器_37、Springboot內建Flowable

下載下傳位址:

https://blog.flowable.org/2016/11/01/flowable-eclipse-designer-5-22-0-release/
           

線上安裝位址:

http://flowable.org/designer/update
           

離線安裝包位址:

http://www.flowable.org/designer/archived/flowable-designer-5.22.0.zip
           
flowable 流程設計器_37、Springboot內建Flowable

2、 建立項目sc-flowable,對應的pom.xml檔案如下

4.0.0com.flowable sc-flowable 0.0.1-SNAPSHOTjarsc-flowablehttp://maven.apache.orgUTF-8org.springframework.boot spring-boot-starter-parent 2.0.4.RELEASEjunit junit testorg.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-logging mysql mysql-connector-java com.zaxxer HikariCP org.flowable flowable-spring-boot-starter-basic 6.4.0org.springframework.boot spring-boot-starter-log4j2 
           

3、 建立配置檔案application.yml

spring: datasource: driver-class-name : com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8 username: root password: rootlogging: level: ROOT: infoflowable: #關閉定時任務JOB async-executor-activate: false #将databaseSchemaUpdate設定為true。當Flowable發現庫與資料庫表結構不一緻時,會自動将資料庫表結構更新至新版本。 database-schema-update: true
           

配置檔案中主要配置資料庫的位址、使用者名及密碼

4、建立springboot啟動類

package com.flowable;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class FlowableApplication { public static void main(String[] args) { SpringApplication.run(FlowableApplication.class, args); }}
           

5、 驗證是否內建flowable成功

運作後FlowableApplication.java,期間沒有任何異常資訊;檢視資料庫,已經自動生成了flowable相關的表結構

flowable 流程設計器_37、Springboot內建Flowable

繼續閱讀