From d5704cafe28d2f7f27a2fb48f362c30218b741d7 Mon Sep 17 00:00:00 2001 From: bryan31 Date: Thu, 22 Oct 2020 21:34:56 +0800 Subject: [PATCH] =?UTF-8?q?enhancement:=20#I1W8OW=20=E6=8F=90=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=9C=80=E6=B1=82=E7=82=B9=EF=BC=9A=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=87=BA=E9=94=99=E8=83=BD=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E9=87=8D=E8=A6=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yomahub/liteflow/entity/flow/Node.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/entity/flow/Node.java b/liteflow-core/src/main/java/com/yomahub/liteflow/entity/flow/Node.java index d763dc15b..133f03168 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/entity/flow/Node.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/entity/flow/Node.java @@ -11,6 +11,7 @@ import java.text.MessageFormat; import java.util.HashMap; import java.util.Map; +import cn.hutool.core.util.StrUtil; import com.yomahub.liteflow.core.NodeComponent; import com.yomahub.liteflow.entity.data.DataBus; import com.yomahub.liteflow.entity.data.Slot; @@ -88,8 +89,8 @@ public class Node implements Executable{ instance.execute(); if(instance.isEnd()){ - LOG.info("[{}]:component[{}] lead the chain to end",slot.getRequestId(),instance.getClass().getSimpleName()); - throw new ChainEndException("component lead the chain to end"); + String errorInfo = StrUtil.format("[{}]:component[{}] lead the chain to end",slot.getRequestId(),instance.getClass().getSimpleName()); + throw new ChainEndException(errorInfo); } }else{ LOG.info("[{}]:[X]skip component[{}] execution",slot.getRequestId(),instance.getClass().getSimpleName());