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);