소스 검색

优化NotCondition中,设值错误的问题

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

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

@@ -26,7 +26,7 @@ public class NotCondition extends Condition {
         Slot slot = DataBus.getSlot(slotIndex);
 
         String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode());
-        slot.setAndOrResult(resultKey, !flag);
+        slot.setNotResult(resultKey, !flag);
     }
 
 
@@ -35,7 +35,7 @@ public class NotCondition extends Condition {
     public Boolean getItemResultMetaValue(Integer slotIndex) {
         Slot slot = DataBus.getSlot(slotIndex);
         String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode());
-        return slot.getAndOrResult(resultKey);
+        return slot.getNotResult(resultKey);
     }
 
     @Override