flowable springboot 集成 flowableDMN_05
生活随笔
收集整理的這篇文章主要介紹了
flowable springboot 集成 flowableDMN_05
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- 配置POM
- 配置Config
- 通過上述的配置,現(xiàn)在在spring容器中已經(jīng)存在一些接口bean了
項(xiàng)目地址:https://gitee.com/lwj/flowable.git 分支flowable-base
視頻地址:https://www.bilibili.com/video/av79774697/
*DMN集成:
這里我們說的是springboot集成DMN
*
*
springboot 集成 flowableDMN
配置POM
這里我們用的版本是flowable 6.5.0
<!-- 配置DMN --><dependency><groupId>org.flowable</groupId><artifactId>flowable-spring-boot-starter-dmn</artifactId><version>${flowable.version}</version></dependency><dependency><groupId>org.flowable</groupId><artifactId>flowable-dmn-spring-configurator</artifactId><version>${flowable.version}</version></dependency><dependency><groupId>org.flowable</groupId><artifactId>flowable-dmn-json-converter</artifactId><version>${flowable.version}</version></dependency>配置Config
我們自己要定義個(gè)config 命名為:FlowableDmnConfig
@Configuration public class FlowableDmnConfig implements EngineConfigurationConfigurer<SpringDmnEngineConfiguration> {@Overridepublic void configure(SpringDmnEngineConfiguration configure) {//設(shè)置是否升級(jí) false不升級(jí) true升級(jí)configure.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);}@Beanpublic DmnJsonConverter dmnJsonConverter(){return new DmnJsonConverter();}@Beanpublic DmnXMLConverter dmnXMLConverter(){return new DmnXMLConverter();}}通過上述的配置,現(xiàn)在在spring容器中已經(jīng)存在一些接口bean了
//運(yùn)行結(jié)果 DmnRuleService DmnRepositoryService DmnHistoryService DmnManagementService這些bean可以直接使用無需單獨(dú)創(chuàng)建
總結(jié)
以上是生活随笔為你收集整理的flowable springboot 集成 flowableDMN_05的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: spring.shardingspher
- 下一篇: mysql添加联合主键