public class FlowEngineDefault extends Object implements FlowEngine
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Chain> |
chainMap |
protected Map<String,FlowDriver> |
driverMap |
protected List<org.noear.solon.core.util.RankEntity<ChainInterceptor>> |
interceptorList |
| Constructor and Description |
|---|
FlowEngineDefault() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(ChainInterceptor interceptor,
int index)
添加拦截器
|
protected boolean |
condition_test(FlowDriver driver,
FlowContext context,
Condition condition,
boolean def)
条件检测
|
void |
eval(Node startNode,
int depth,
FlowContext context)
评估
|
void |
eval(String chainId,
String startId,
int depth,
FlowContext context)
评估
|
protected void |
evalDo(ChainInvocation inv)
执行评估
|
protected boolean |
exclusive_run(FlowDriver driver,
FlowContext context,
Node node,
int depth)
运行排他网关
|
Chain |
getChain(String chainId)
获取链
|
Collection<Chain> |
getChains()
获取所有链
|
protected boolean |
inclusive_run(FlowDriver driver,
FlowContext context,
Node node,
int depth)
运行包容网关
|
protected void |
initContextDo(FlowContext context)
初始化上下文
|
void |
load(Chain chain)
加载链
|
protected boolean |
node_run(FlowDriver driver,
FlowContext context,
Node node,
int depth)
运行节点
|
protected boolean |
parallel_run(FlowDriver driver,
FlowContext context,
Node node,
int depth)
运行并行网关
|
void |
register(String name,
FlowDriver driver)
注册链驱动器
|
protected void |
task_exec(FlowDriver driver,
FlowContext context,
Node node)
执行任务
|
void |
unload(String chainId)
卸载链
|
void |
unregister(String name)
注销链驱动器
|
protected final Map<String,FlowDriver> driverMap
protected final List<org.noear.solon.core.util.RankEntity<ChainInterceptor>> interceptorList
public void addInterceptor(ChainInterceptor interceptor, int index)
FlowEngineaddInterceptor in interface FlowEngineinterceptor - 拦截器index - 顺序位public void register(String name, FlowDriver driver)
FlowEngineregister in interface FlowEnginename - 名字driver - 驱动器public void unregister(String name)
FlowEngineunregister in interface FlowEnginepublic void load(Chain chain)
FlowEngineload in interface FlowEnginechain - 链public void unload(String chainId)
FlowEngineunload in interface FlowEnginechainId - 链Idpublic Collection<Chain> getChains()
FlowEnginegetChains in interface FlowEnginepublic Chain getChain(String chainId)
FlowEnginegetChain in interface FlowEnginepublic void eval(String chainId, String startId, int depth, FlowContext context) throws FlowException
eval in interface FlowEnginechainId - 链context - 上下文startId - 开始Iddepth - 执行深度FlowExceptionpublic void eval(Node startNode, int depth, FlowContext context) throws FlowException
eval in interface FlowEnginestartNode - 开始节点depth - 执行深度context - 上下文FlowExceptionprotected void initContextDo(FlowContext context)
protected void evalDo(ChainInvocation inv) throws FlowException
FlowExceptionprotected boolean condition_test(FlowDriver driver, FlowContext context, Condition condition, boolean def) throws FlowException
FlowExceptionprotected void task_exec(FlowDriver driver, FlowContext context, Node node) throws FlowException
FlowExceptionprotected boolean node_run(FlowDriver driver, FlowContext context, Node node, int depth) throws FlowException
FlowExceptionprotected boolean inclusive_run(FlowDriver driver, FlowContext context, Node node, int depth) throws FlowException
FlowExceptionprotected boolean exclusive_run(FlowDriver driver, FlowContext context, Node node, int depth) throws FlowException
FlowExceptionprotected boolean parallel_run(FlowDriver driver, FlowContext context, Node node, int depth) throws FlowException
FlowExceptionCopyright © 2025. All rights reserved.