bug #I5NH56 switch组件对于cglib代理过的bean目前处理的不够全面

This commit is contained in:
everywhere.z
2022-08-23 01:02:14 +08:00
parent b9dd5e7eaf
commit 94f83d58d3

View File

@@ -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