@Preview(value="3.0") public class ChainContext extends Object implements Serializable
| 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)
设置
|
public Object result
protected transient FlowEngine engine
public FlowEngine engine()
public Counter counter()
public boolean isInterrupted()
public void interrupt()
public ChainContext put(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)
Copyright © 2025. All rights reserved.