1. pomjava
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> <relativePath /> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <shiro.version>1.5.3</shiro.version> <flowable.version>6.6.0</flowable.version> <maven-jar-plugin.version>3.0.0</maven-jar-plugin.version> </properties> ======================== <!--flowable工做流依賴--> <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-starter</artifactId> <version>${flowable.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.flowable/flowable-json-converter --> <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-json-converter</artifactId> <version>${flowable.version}</version> </dependency> <!-- app 依賴 包含 rest,logic,conf --> <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-rest</artifactId> <version>${flowable.version}</version> </dependency> <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-logic</artifactId> <version>${flowable.version}</version> <exclusions> <exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-conf</artifactId> <version>${flowable.version}</version> </dependency>
2. 配置類spring
package org.fh.config; import org.flowable.spring.SpringProcessEngineConfiguration; import org.flowable.spring.boot.EngineConfigurationConfigurer; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Controller; /** * 說明:Flowable配置 * 做者:FH Admin * from:fhadmin.cn */ @Controller @Configuration public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> { @Override public void configure(SpringProcessEngineConfiguration engineConfiguration) { engineConfiguration.setActivityFontName("宋體"); engineConfiguration.setLabelFontName("宋體"); engineConfiguration.setAnnotationFontName("宋體"); } }
3. 配置文件 flowable.propertiesapache
blobType=BLOB boolValue=TRUE prefix=
------------------------www.fhadmin.cn------------------------------------------自定義表單
28. 定義模版:拖拽左側表單元素到右側區域,編輯表單元素,保存表單模版
29. 表單模版:編輯維護表單模版,複製表單模版,修改模版類型,預覽表單模版
30. 個人表單:選擇表單模版,編輯表單規則,是否上傳圖片、附件、開啓富文本、掛靠流程開關等
31. 表單數據:從個人表單進去可增刪改查表單數據,修改表單規則
32. 掛靠記錄:記錄表單數據和流程實例ID關聯記錄,可刪除json