From 143481632c1d4fa75c29bcb0274e8d57a6d26469 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Tue, 9 Jan 2024 14:45:14 +0800 Subject: [PATCH] =?UTF-8?q?enhancement=20#I8UQR4=20while=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=9C=AC=E8=BA=AB=E5=8A=A0=E5=85=A5loopIndex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liteflow/flow/element/condition/WhileCondition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/WhileCondition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/WhileCondition.java index a26fbf4f8..df85bfe86 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/WhileCondition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/WhileCondition.java @@ -82,10 +82,10 @@ public class WhileCondition extends LoopCondition { } private boolean getWhileResult(Integer slotIndex, int loopIndex) throws Exception { - Node whileItem = (Node) this.getWhileItem(); + Executable whileItem = this.getWhileItem(); // 执行while组件 whileItem.setCurrChainId(this.getCurrChainId()); - whileItem.setLoopIndex(loopIndex); + setLoopIndex(whileItem, loopIndex); whileItem.execute(slotIndex); return whileItem.getItemResultMetaValue(slotIndex);