@Target(value=METHOD) @Retention(value=RUNTIME) @Documented @Listen(resolver=ListenFlowExceptionResolver.class, priorityType=ASC) public @interface ListenFlowException
配合@TheFlowListener一起使用;当流程发生异常时,都会调用本注解标注的方法。 对应的方法入参类型必须为(Throwable, FlowContext)。
| 限定符和类型 | 可选元素和说明 |
|---|---|
PriorityType |
priorityType
优先级类型(默认为升序)
|
@AliasFor(annotation=org.bekit.event.annotation.listener.Listen.class, attribute="priorityType") public abstract PriorityType priorityType
Copyright © 2020. All rights reserved.