Browse Source

优化代码

caixiaofeng 6 months ago
parent
commit
e7873da0b8

+ 0 - 1
flow-common/flow-common-flowable-starter/src/main/java/com/flow/flowable/validator/CustomServiceTaskValidator.java

@@ -27,7 +27,6 @@ public class CustomServiceTaskValidator extends ServiceTaskValidator {
         }
     }
 
-
     private void validateFieldDeclarationsForCopy(Process process, TaskWithFieldExtensions task, List<FieldExtension> fieldExtensions, List<ValidationError> errors) {
         String assignee = ProcessElementUtil.getFieldExtensionExpression(task, "assignee");
         if (StringUtils.isBlank(assignee)) {

+ 0 - 3
flow-workflow/flow-workflow-entity/src/main/java/com/flow/entity/FlowModel.java

@@ -62,9 +62,6 @@ public class FlowModel extends BaseEntity {
         process.setExecutable(this.getEnable());
         // 设置流程的文档
         process.setDocumentation(this.getRemark());
-        // 设置谁可以发起流程
-        process.setCandidateStarterUsers(new ArrayList<>());
-        process.setCandidateStarterGroups(new ArrayList<>());
         // 递归构建所有节点
         Node node = this.getProcess();
         List<FlowElement> flowElementList = node.convert();

+ 1 - 0
sql/flow.sql

@@ -122,6 +122,7 @@ CREATE TABLE `flow_model_history`  (
   `version` int UNSIGNED NOT NULL DEFAULT 1 COMMENT '版本',
   `group_id` bigint NOT NULL COMMENT '分组id',
   `admin` json NOT NULL COMMENT '流程管理员',
+  `settings` json NOT NULL COMMENT '高级设置',
   `enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用',
   `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
   `created_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建者',