enhancement #I8UQR4 while组件本身加入loopIndex

This commit is contained in:
everywhere.z
2024-01-09 14:45:14 +08:00
parent 3059db967c
commit 143481632c

View File

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