소스 검색

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

everywhere.z 2 년 전
부모
커밋
a8bb1603a3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/LoopCondition.java

+ 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){