Forráskód Böngészése

bug #I6JF0K 迭代&循环组件在SWITCH语境中无法获取迭代对象和下标的问题

everywhere.z 2 éve
szülő
commit
a8bb1603a3

+ 2 - 2
liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/LoopCondition.java

@@ -34,7 +34,7 @@ public abstract class LoopCondition extends Condition {
             setLoopIndex(((IfCondition) executableItem).getFalseCaseExecutableItem(), index);
         }else if(executableItem instanceof SwitchCondition){
             ((Condition) executableItem).getExecutableList().forEach(executable -> setLoopIndex(executable, index));
-            ((SwitchCondition)executableItem).getTargetList().forEach(executable -> setLoopIndex(executableItem, index));
+            ((SwitchCondition)executableItem).getTargetList().forEach(executable -> setLoopIndex(executable, index));
         }else if(executableItem instanceof Condition){
             ((Condition)executableItem).getExecutableList().forEach(executable -> setLoopIndex(executable, index));
         }else if(executableItem instanceof Node){
@@ -51,7 +51,7 @@ public abstract class LoopCondition extends Condition {
             setCurrLoopObject(((IfCondition) executableItem).getFalseCaseExecutableItem(), obj);
         }else if(executableItem instanceof SwitchCondition){
             ((Condition) executableItem).getExecutableList().forEach(executable -> setCurrLoopObject(executable, obj));
-            ((SwitchCondition)executableItem).getTargetList().forEach(executable -> setCurrLoopObject(executableItem, obj));
+            ((SwitchCondition)executableItem).getTargetList().forEach(executable -> setCurrLoopObject(executable, obj));
         }else if(executableItem instanceof Condition){
             ((Condition)executableItem).getExecutableList().forEach(executable -> setCurrLoopObject(executable, obj));
         }else if(executableItem instanceof Node){