diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/CatchCondition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/CatchCondition.java index 4c52d58566a7c79d13ecfafdd2f73fdef4b609b3..366ec7173d01ee11557fdfeab0f802fa7c7cab11 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/CatchCondition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/CatchCondition.java @@ -37,7 +37,7 @@ public class CatchCondition extends Condition { //ChainEndException属于用户主动结束流程,不应该进入Catch的流程 throw e; }catch (Exception e) { - LOG.error("catch exception:" + e.getMessage(), e); + LOG.warn("catch exception (handled):" + e.getMessage(), e); Executable doExecutable = this.getDoItem(); if (ObjectUtil.isNotNull(doExecutable)) { doExecutable.setCurrChainId(this.getCurrChainId()); @@ -70,4 +70,4 @@ public class CatchCondition extends Condition { this.addExecutable(ConditionKey.DO_KEY, executable); } -} +} \ No newline at end of file diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java index d937b5050bc791ecf03461cbb3d398ac8ec391a4..867da9a41fe3b8cca0e18d6ca184fd925ed28ac6 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/NotCondition.java @@ -20,7 +20,8 @@ public class NotCondition extends Condition { item.setCurrChainId(this.getCurrChainId()); item.execute(slotIndex); - boolean flag = item.getItemResultMetaValue(slotIndex); + Boolean resultValue = item.getItemResultMetaValue(slotIndex); + boolean flag = BooleanUtil.isTrue(resultValue); LOG.info("the result of boolean component [{}] is [{}]", item.getId(), flag); @@ -52,4 +53,4 @@ public class NotCondition extends Condition { return this.getExecutableOne(ConditionKey.NOT_ITEM_KEY); } -} +} \ No newline at end of file