From 778cd5787e91598c280710262cb674f825059c27 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Sun, 25 Feb 2024 22:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96NotCondition=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E8=AE=BE=E5=80=BC=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yomahub/liteflow/flow/element/condition/NotCondition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java index 5e53f843..3a8f3d9f 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java @@ -26,7 +26,7 @@ public class NotCondition extends Condition { Slot slot = DataBus.getSlot(slotIndex); String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode()); - slot.setAndOrResult(resultKey, !flag); + slot.setNotResult(resultKey, !flag); } @@ -35,7 +35,7 @@ public class NotCondition extends Condition { public Boolean getItemResultMetaValue(Integer slotIndex) { Slot slot = DataBus.getSlot(slotIndex); String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode()); - return slot.getAndOrResult(resultKey); + return slot.getNotResult(resultKey); } @Override