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
};