From 3e410f08d3bdc6c1235da35d627dd6a3c52a3692 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Sun, 27 Nov 2022 21:39:19 +0800 Subject: [PATCH] =?UTF-8?q?enhancement=20#I5ULVA=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?chain=E7=9A=84name=E5=92=8Cid=E6=B7=B7=E7=94=A8=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=A4=AA=E4=B8=A5=E8=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yomahub/liteflow/builder/el/LiteFlowChainELBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/builder/el/LiteFlowChainELBuilder.java b/liteflow-core/src/main/java/com/yomahub/liteflow/builder/el/LiteFlowChainELBuilder.java index 4aee371ed..ab827a0a8 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/builder/el/LiteFlowChainELBuilder.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/builder/el/LiteFlowChainELBuilder.java @@ -120,7 +120,7 @@ public class LiteFlowChainELBuilder { public LiteFlowChainELBuilder setEL(String elStr) { if (StrUtil.isBlank(elStr)) { - String errMsg = StrUtil.format("no conditionList in this chain[{}]", chain.getChainName()); + String errMsg = StrUtil.format("no conditionList in this chain[{}]", chain.getChainId()); throw new FlowSystemException(errMsg); } @@ -130,7 +130,7 @@ public class LiteFlowChainELBuilder { //这里一定要先放chain,再放node,因为node优先于chain,所以当重名时,node会覆盖掉chain //往上下文里放入所有的chain,是的el表达式可以直接引用到chain - FlowBus.getChainMap().values().forEach(chain -> context.put(chain.getChainName(), chain)); + FlowBus.getChainMap().values().forEach(chain -> context.put(chain.getChainId(), chain)); //往上下文里放入所有的node,使得el表达式可以直接引用到nodeId FlowBus.getNodeMap().keySet().forEach(nodeId -> context.put(nodeId, FlowBus.getNode(nodeId))); @@ -181,7 +181,7 @@ public class LiteFlowChainELBuilder { */ private void checkBuild() { List errorList = new ArrayList<>(); - if (StrUtil.isBlank(this.chain.getChainName())) { + if (StrUtil.isBlank(this.chain.getChainId())) { errorList.add("name is blank"); } if (CollUtil.isNotEmpty(errorList)) {