From f3207649fffad5b908c07a3035d71cbf0b767bd0 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: 星期六, 16 三月 2024 21:59:53 +0800 Subject: [PATCH] update 调整模型部署,模型导出批量导出,上传 --- ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/utils/ModelUtils.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/utils/ModelUtils.java b/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/utils/ModelUtils.java index 18969b1..5f2551a 100644 --- a/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/utils/ModelUtils.java +++ b/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/utils/ModelUtils.java @@ -7,6 +7,8 @@ import cn.hutool.core.util.StrUtil; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; import org.dromara.common.core.utils.StreamUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.json.utils.JsonUtils; @@ -32,9 +34,8 @@ * * @author may */ +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class ModelUtils { - public ModelUtils() { - } public static BpmnModel xmlToBpmnModel(String xml) throws IOException { if (xml == null) { @@ -194,7 +195,7 @@ * * @param processDefinitionId 娴佺▼瀹氫箟id */ - public Map<String, List<ExtensionElement>> getExtensionElements(String processDefinitionId) { + public static Map<String, List<ExtensionElement>> getExtensionElements(String processDefinitionId) { Map<String, List<ExtensionElement>> map = new HashMap<>(); List<FlowElement> flowElements = getFlowElements(processDefinitionId); for (FlowElement flowElement : flowElements) { @@ -211,7 +212,7 @@ * @param processDefinitionId 娴佺▼瀹氫箟id * @param flowElementId 鑺傜偣id */ - public Map<String, List<ExtensionElement>> getExtensionElement(String processDefinitionId, String flowElementId) { + public static Map<String, List<ExtensionElement>> getExtensionElement(String processDefinitionId, String flowElementId) { BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(processDefinitionId); Process process = bpmnModel.getMainProcess(); FlowElement flowElement = process.getFlowElement(flowElementId); -- Gitblit v1.9.3