From 94f83d58d3f747f2150dc51a077abfb3e2b2fc9b Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Tue, 23 Aug 2022 01:02:14 +0800 Subject: [PATCH] =?UTF-8?q?bug=20#I5NH56=20switch=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=AF=B9=E4=BA=8Ecglib=E4=BB=A3=E7=90=86=E8=BF=87=E7=9A=84bean?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E5=A4=84=E7=90=86=E7=9A=84=E4=B8=8D=E5=A4=9F?= =?UTF-8?q?=E5=85=A8=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yomahub/liteflow/core/NodeSwitchComponent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeSwitchComponent.java b/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeSwitchComponent.java index 1ebe9d5a3..aed00436a 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeSwitchComponent.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeSwitchComponent.java @@ -7,6 +7,8 @@ */ package com.yomahub.liteflow.core; +import com.yomahub.liteflow.util.LiteFlowProxyUtil; + /** * 条件路由节点抽象类 * @author Bryan.Zhang @@ -16,7 +18,8 @@ public abstract class NodeSwitchComponent extends NodeComponent { @Override public void process() throws Exception { String nodeId = this.processSwitch(); - this.getSlot().setSwitchResult(this.getClass().getName(), nodeId); + Class originalClass = LiteFlowProxyUtil.getUserClass(this.getClass()); + this.getSlot().setSwitchResult(originalClass.getName(), nodeId); } //用以返回路由节点的beanId