@Preview(value="3.0") public class ChainContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FlowEngine |
engine |
Object |
result |
| Constructor and Description |
|---|
ChainContext() |
ChainContext(Map<String,Object> model) |
| Modifier and Type | Method and Description |
|---|---|
Counter |
counter()
计数器
|
FlowEngine |
engine()
当前流程引擎
|
<T> T |
get(String key)
获取
|
<T> T |
getOrDefault(String key,
T def)
获取或默认
|
void |
interrupt()
阻断(当前分支不再后流)
|
protected void |
interrupt(boolean interrupted)
阻断重置
|
boolean |
isInterrupted()
是否已阻断
|
boolean |
isStopped()
是否已停止
|
Map<String,Object> |
model()
数据模型
|
void |
next(Node node)
下一步
|
ChainContext |
put(String key,
Object value)
推入
|
ChainContext |
putAll(Map<String,Object> model)
推入全部
|
ChainContext |
putIfAbsent(String key,
Object value)
推入
|
void |
remove(String key)
移除
|
Object |
run(String script)
运行脚本
|
void |
stop()
停止(整个流程不再后流)
|
public transient Object result
protected transient FlowEngine engine
public FlowEngine engine()
public Object run(String script) throws InvocationTargetException
InvocationTargetExceptionpublic Counter counter()
public boolean isStopped()
public void stop()
public boolean isInterrupted()
public void interrupt()
protected void interrupt(boolean interrupted)
public ChainContext put(String key, Object value)
public ChainContext putIfAbsent(String key, Object value)
public ChainContext putAll(Map<String,Object> model)
public <T> T get(String key)
public <T> T getOrDefault(String key, T def)
public void remove(String key)
Copyright © 2025. All rights reserved.