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