@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()
中断(执行中可中断流)
|
boolean |
isInterrupted()
是否已中断
|
Map<String,Object> |
model()
数据模型
|
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)
运行脚本
|
public transient Object result
protected transient FlowEngine engine
public FlowEngine engine()
public Object run(String script) throws InvocationTargetException
InvocationTargetExceptionpublic Counter counter()
public boolean isInterrupted()
public void interrupt()
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.