From 862749e30d0107236456c8024a85621e479aebc2 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Mon, 13 Mar 2023 11:16:44 +0800 Subject: [PATCH] =?UTF-8?q?enhancement=20#I6LWYM=20=E6=B7=B1=E5=B1=82?= =?UTF-8?q?=E6=AC=A1=E4=BC=98=E5=8C=96Condition=E7=BB=B4=E5=BA=A6=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liteflow/flow/element/condition/Condition.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/Condition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/Condition.java index 5eb50a38e..fc7deb48a 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/Condition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/Condition.java @@ -32,9 +32,6 @@ public abstract class Condition implements Executable{ */ private final Map> executableGroup = new HashMap<>(); - private final String DEFAULT_GROUP = "DEFAULT"; - - /** * 当前所在的ChainName * 如果对于子流程来说,那这个就是子流程所在的Chain @@ -52,7 +49,7 @@ public abstract class Condition implements Executable{ } public List getExecutableList() { - return getExecutableList(DEFAULT_GROUP); + return getExecutableList(ConditionKey.DEFAULT_KEY); } public List getExecutableList(String groupKey) { @@ -73,11 +70,11 @@ public abstract class Condition implements Executable{ } public void setExecutableList(List executableList) { - this.executableGroup.put(DEFAULT_GROUP, executableList); + this.executableGroup.put(ConditionKey.DEFAULT_KEY, executableList); } public void addExecutable(Executable executable) { - addExecutable(DEFAULT_GROUP, executable); + addExecutable(ConditionKey.DEFAULT_KEY, executable); } public void addExecutable(String groupKey, Executable executable) {