feature #I7YYLE 完善测试用例

This commit is contained in:
Dale Lee
2023-10-06 21:01:52 +08:00
parent 63b1e2744a
commit c422761aef
74 changed files with 2395 additions and 14 deletions

View File

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

View File

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

View File

@@ -4,6 +4,7 @@ package com.yomahub.liteflow.exception;
* 没有找到降级组件异常
*
* @author DaleLee
* @since 2.11.1
*/
public class FallbackCmpNotFoundException extends RuntimeException {

View File

@@ -294,9 +294,6 @@ public class FlowBus {
}
NodeTypeEnum nodeType = node.getType();
if (nodeType == null) {
nodeType = fallbackCmp.type();
}
fallbackNodeMap.put(nodeType, node);
}

View File

@@ -21,7 +21,7 @@ import com.yomahub.liteflow.slot.Slot;
* 降级组件代理
*
* @author DaleLee
* @since
* @since 2.11.1
*/
public class FallbackNodeProxy extends Node {