public abstract class AbstractFlowDriver extends Object implements FlowDriver
| Constructor and Description |
|---|
AbstractFlowDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Container |
getContainer()
获取组件容器
|
protected Object |
getDepthMeta(Map metas,
String key)
获取深度元数据
|
protected abstract Evaluation |
getEvaluation()
获取脚本评估器
|
boolean |
handleCondition(FlowContext context,
Condition condition)
处理条件
|
protected boolean |
handleConditionDo(FlowContext context,
Condition condition,
String description) |
void |
handleTask(FlowContext context,
Task task)
处理任务
|
protected void |
handleTaskDo(FlowContext context,
Task task,
String description) |
protected boolean |
isChain(String description)
是否为组件
|
protected boolean |
isComponent(String description)
是否为组件
|
void |
onNodeEnd(FlowContext context,
Node node)
当节点结束
|
void |
onNodeStart(FlowContext context,
Node node)
当节点开始(节点不是任务)
|
protected void |
tryAsChainTask(FlowContext context,
Task task,
String description)
尝试作为子链任务运行
|
protected void |
tryAsComponentTask(FlowContext context,
Task task,
String description)
尝试作为组件任务运行
|
protected boolean |
tryAsScriptCondition(FlowContext context,
Condition condition,
String description)
尝试作为脚本条件运行
|
protected void |
tryAsScriptTask(FlowContext context,
Task task,
String description)
尝试作为脚本任务运行
|
protected abstract Evaluation getEvaluation()
protected abstract Container getContainer()
protected boolean isChain(String description)
protected boolean isComponent(String description)
public void onNodeStart(FlowContext context, Node node)
onNodeStart in interface FlowDriverpublic void onNodeEnd(FlowContext context, Node node)
onNodeEnd in interface FlowDriverpublic boolean handleCondition(FlowContext context, Condition condition) throws Throwable
handleCondition in interface FlowDriverThrowableprotected boolean handleConditionDo(FlowContext context, Condition condition, String description) throws Throwable
Throwableprotected boolean tryAsScriptCondition(FlowContext context, Condition condition, String description) throws Throwable
Throwablepublic void handleTask(FlowContext context, Task task) throws Throwable
handleTask in interface FlowDriverThrowableprotected void handleTaskDo(FlowContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsChainTask(FlowContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsComponentTask(FlowContext context, Task task, String description) throws Throwable
Throwableprotected void tryAsScriptTask(FlowContext context, Task task, String description) throws Throwable
ThrowableCopyright © 2025. All rights reserved.