@Preview(value="3.5") public class FlowExchanger extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FlowEngine |
engine |
static String |
TAG |
| Constructor and Description |
|---|
FlowExchanger(FlowContext context) |
| Modifier and Type | Method and Description |
|---|---|
FlowContext |
context()
当前上下文
|
FlowEngine |
engine()
当前流程引擎
|
void |
interrupt()
阻断(当前分支不再后流)
|
void |
interrupt(boolean interrupted)
阻断重置
|
boolean |
isInterrupted()
是否已阻断
|
boolean |
isStopped()
是否已停止
|
Object |
runScript(String script)
运行脚本
|
void |
runTask(Node node,
String description)
运行任务
|
void |
stop()
停止(整个流程不再后流)
|
Temporary |
temporary()
临时存放器
|
public static final String TAG
protected transient FlowEngine engine
public FlowExchanger(FlowContext context)
public FlowContext context()
public FlowEngine engine()
public Temporary temporary()
public void runTask(Node node, String description) throws FlowException
node - 节点description - 任务描述FlowExceptionpublic Object runScript(String script) throws FlowException
script - 脚本FlowExceptionpublic boolean isStopped()
public void stop()
public boolean isInterrupted()
public void interrupt()
public void interrupt(boolean interrupted)
Copyright © 2025. All rights reserved.