限定符和类型 | 方法和说明 |
---|---|
void |
addInterceptor(ChainInterceptor interceptor,
int index)
添加拦截器
|
java.util.Collection<Chain> |
chains()
获取链集合
|
default void |
eval(Chain chain)
评估
|
default void |
eval(Chain chain,
ChainContext context)
评估
|
void |
eval(Chain chain,
java.lang.String startId,
int depth,
ChainContext context)
评估
|
default void |
eval(java.lang.String chainId)
评估
|
default void |
eval(java.lang.String chainId,
ChainContext context)
评估
|
void |
eval(java.lang.String chainId,
java.lang.String startId,
int depth,
ChainContext context)
评估
|
void |
load(Chain chain)
加载链
|
default void |
load(java.lang.String chainUri)
解析配置文件
|
static FlowEngine |
newInstance()
新实例
|
default void |
register(ChainDriver driver)
注册默认链驱动器
|
void |
register(java.lang.String name,
ChainDriver driver)
注册链驱动器
|
void |
unload(java.lang.String chainId)
卸载链
|
void |
unregister(java.lang.String name)
注销链驱动器
|
static FlowEngine newInstance()
void addInterceptor(ChainInterceptor interceptor, int index)
index
- 顺序位interceptor
- 拦截器void register(java.lang.String name, ChainDriver driver)
name
- 名字driver
- 驱动器default void register(ChainDriver driver)
driver
- 默认驱动器void unregister(java.lang.String name)
default void load(java.lang.String chainUri) throws java.io.IOException
chainUri
- 链资源地址java.io.IOException
void load(Chain chain)
chain
- 链void unload(java.lang.String chainId)
chainId
- 链Idjava.util.Collection<Chain> chains()
default void eval(java.lang.String chainId) throws java.lang.Throwable
chainId
- 链Idjava.lang.Throwable
default void eval(java.lang.String chainId, ChainContext context) throws java.lang.Throwable
chainId
- 链Idcontext
- 上下文java.lang.Throwable
void eval(java.lang.String chainId, java.lang.String startId, int depth, ChainContext context) throws java.lang.Throwable
chainId
- 链IdstartId
- 开始Iddepth
- 执行深度context
- 上下文java.lang.Throwable
default void eval(Chain chain) throws java.lang.Throwable
chain
- 链java.lang.Throwable
default void eval(Chain chain, ChainContext context) throws java.lang.Throwable
chain
- 链context
- 上下文java.lang.Throwable
void eval(Chain chain, java.lang.String startId, int depth, ChainContext context) throws java.lang.Throwable
chain
- 链startId
- 开始Iddepth
- 执行深度context
- 上下文java.lang.Throwable