Springboot pom.xml
<!-- flowable 核心包 -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter</artifactId>
<version>${flowable.version}</version>
</dependency>
<!-- flowable json转换包 -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-json-converter</artifactId>
<version>${flowable.version}</version>
</dependency>
<!-- flowable 设计器接口包 -->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-rest</artifactId>
<version>${flowable.version}</version>
</dependency>
流程设计器
设计器可以放在后端或前端,放在后端如果集群部署,则每个应用中都会存在一份设计器,建议前端引入
后端引入
将设计器源码复制到resources/static/designer目录中,修改scripts/app-cfg.js,
FLOWABLE.CONFIG = {
'onPremise' : true,
'contextRoot' : '/api',
'webContextRoot' : '/api/designer',
'datesLocalization' : false
};
前端引入
前端框架用的Layui,
将设计器源码复制到/components/flow/designer目录中,修改scripts/app-cfg.js,
FLOWABLE.CONFIG = {
'onPremise' : true,
// nging 转发,请求后台
'contextRoot' : '/api',
'webContextRoot' : '/components/flow/designer',
'datesLocalization' : false
};
本文介绍了如何在SpringBoot项目中集成Flowable工作流,并提供了相关依赖配置。同时,讨论了流程设计器的部署选项,包括后端和前端的集成方式,以及相应的配置修改。对于前端,给出了在Layui框架下引入设计器的步骤,并提供了源码提取码。
9486

被折叠的 条评论
为什么被折叠?



