mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-24 08:08:10 +08:00
feature #I7YYLE 完善测试用例
This commit is contained in:
@@ -11,17 +11,13 @@ import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 降级组件
|
||||
*
|
||||
* @author DaleLee
|
||||
* @since 2.11.1
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Inherited
|
||||
public @interface FallbackCmp {
|
||||
|
||||
/**
|
||||
* 节点类型
|
||||
* @return NodeTypeEnum
|
||||
*/
|
||||
NodeTypeEnum type() default NodeTypeEnum.COMMON;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ import com.yomahub.liteflow.property.LiteflowConfigGetter;
|
||||
/**
|
||||
* EL规则中的node的操作符
|
||||
*
|
||||
* @author Bryan.Zhang,DaleLee
|
||||
* @author Bryan.Zhang
|
||||
* @author DaleLee
|
||||
* @since 2.8.3
|
||||
*/
|
||||
public class NodeOperator extends BaseOperator<Node> {
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.yomahub.liteflow.exception;
|
||||
* 没有找到降级组件异常
|
||||
*
|
||||
* @author DaleLee
|
||||
* @since 2.11.1
|
||||
*/
|
||||
public class FallbackCmpNotFoundException extends RuntimeException {
|
||||
|
||||
|
||||
@@ -294,9 +294,6 @@ public class FlowBus {
|
||||
}
|
||||
|
||||
NodeTypeEnum nodeType = node.getType();
|
||||
if (nodeType == null) {
|
||||
nodeType = fallbackCmp.type();
|
||||
}
|
||||
fallbackNodeMap.put(nodeType, node);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.yomahub.liteflow.slot.Slot;
|
||||
* 降级组件代理
|
||||
*
|
||||
* @author DaleLee
|
||||
* @since
|
||||
* @since 2.11.1
|
||||
*/
|
||||
public class FallbackNodeProxy extends Node {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user