@Preview(value="3.0")
public interface FlowEngine
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(ChainInterceptor interceptor,
int index)
添加拦截器
|
default void |
eval(Chain chain)
评估
|
default void |
eval(Chain chain,
FlowContext context)
评估
|
default void |
eval(Node startNode)
评估
|
default void |
eval(Node startNode,
FlowContext context)
评估
|
void |
eval(Node startNode,
int depth,
FlowContext context)
评估
|
default void |
eval(String chainId)
评估
|
default void |
eval(String chainId,
FlowContext context)
评估
|
default void |
eval(String chainId,
String startId,
FlowContext context)
评估
|
void |
eval(String chainId,
String startId,
int depth,
FlowContext context)
评估
|
Chain |
getChain(String chainId)
获取链
|
Collection<Chain> |
getChains()
获取所有链
|
void |
load(Chain chain)
加载链
|
default void |
load(String chainUri)
解析配置文件
|
static FlowEngine |
newInstance()
新实例
|
default void |
register(FlowDriver driver)
注册默认链驱动器
|
void |
register(String name,
FlowDriver driver)
注册链驱动器
|
void |
unload(String chainId)
卸载链
|
void |
unregister(String name)
注销链驱动器
|
static FlowEngine newInstance()
void addInterceptor(ChainInterceptor interceptor, int index)
index - 顺序位interceptor - 拦截器void register(String name, FlowDriver driver)
name - 名字driver - 驱动器default void register(FlowDriver driver)
driver - 默认驱动器void unregister(String name)
default void load(String chainUri)
chainUri - 链资源地址void load(Chain chain)
chain - 链void unload(String chainId)
chainId - 链IdCollection<Chain> getChains()
default void eval(String chainId) throws FlowException
chainId - 链IdFlowExceptiondefault void eval(String chainId, FlowContext context) throws FlowException
chainId - 链Idcontext - 上下文FlowExceptiondefault void eval(String chainId, String startId, FlowContext context) throws FlowException
chainId - 链IdstartId - 开始Idcontext - 上下文FlowExceptionvoid eval(String chainId, String startId, int depth, FlowContext context) throws FlowException
chainId - 链IdstartId - 开始Iddepth - 执行深度context - 上下文FlowExceptiondefault void eval(Chain chain) throws FlowException
chain - 链FlowExceptiondefault void eval(Chain chain, FlowContext context) throws FlowException
chain - 链context - 上下文FlowExceptiondefault void eval(Node startNode) throws FlowException
startNode - 开始节点FlowExceptiondefault void eval(Node startNode, FlowContext context) throws FlowException
startNode - 开始节点context - 上下文FlowExceptionvoid eval(Node startNode, int depth, FlowContext context) throws FlowException
startNode - 开始节点depth - 执行深度context - 上下文FlowExceptionCopyright © 2025. All rights reserved.