@Preview(value="3.4") public class FlowStatefulServiceDefault extends Object implements FlowStatefulService
| Constructor and Description |
|---|
FlowStatefulServiceDefault(FlowEngine flowEngine) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
backHandle(FlowDriver driver,
Node node,
FlowExchanger exchanger)
后退处理
|
void |
clearState(Chain chain,
FlowContext context)
清空状态
|
void |
clearState(String chainId,
FlowContext context)
清空状态
|
FlowEngine |
engine()
当前流程引擎
|
protected void |
forwardHandle(FlowDriver driver,
Node node,
FlowExchanger exchanger,
StateType newState)
前进处理
|
StatefulTask |
getTask(Chain chain,
FlowContext context)
获取当前活动节点
|
StatefulTask |
getTask(String chainId,
FlowContext context)
获取当前活动节点
|
Collection<StatefulTask> |
getTasks(Chain chain,
FlowContext context)
获取多个活动节点
|
Collection<StatefulTask> |
getTasks(String chainId,
FlowContext context)
获取多个活动节点
|
void |
postOperation(Node node,
Operation operation,
FlowContext context)
提交操作
|
void |
postOperation(String chainId,
String nodeId,
Operation operation,
FlowContext context)
提交操作
|
protected void |
postOperationDo(FlowExchanger exchanger,
Node node,
Operation operation)
提交操作
|
boolean |
postOperationIfWaiting(Node node,
Operation operation,
FlowContext context)
提交操作(如果当前节点为等待介入)
|
boolean |
postOperationIfWaiting(String chainId,
String nodeId,
Operation operation,
FlowContext context)
提交操作(如果当前节点为等待介入)
|
StatefulTask |
stepBack(Chain chain,
FlowContext context)
单步后退
|
StatefulTask |
stepBack(String chainId,
FlowContext context)
单步后退
|
StatefulTask |
stepForward(Chain chain,
FlowContext context)
单步前进
|
StatefulTask |
stepForward(String chainId,
FlowContext context)
单步前进
|
public FlowStatefulServiceDefault(FlowEngine flowEngine)
public FlowEngine engine()
FlowStatefulServiceengine in interface FlowStatefulServicepublic StatefulTask stepForward(String chainId, FlowContext context)
stepForward in interface FlowStatefulServicepublic StatefulTask stepForward(Chain chain, FlowContext context)
stepForward in interface FlowStatefulServicepublic StatefulTask stepBack(String chainId, FlowContext context)
stepBack in interface FlowStatefulServicepublic StatefulTask stepBack(Chain chain, FlowContext context)
stepBack in interface FlowStatefulServicepublic boolean postOperationIfWaiting(String chainId, String nodeId, Operation operation, FlowContext context)
postOperationIfWaiting in interface FlowStatefulServicepublic boolean postOperationIfWaiting(Node node, Operation operation, FlowContext context)
postOperationIfWaiting in interface FlowStatefulServicepublic void postOperation(String chainId, String nodeId, Operation operation, FlowContext context)
postOperation in interface FlowStatefulServicepublic void postOperation(Node node, Operation operation, FlowContext context)
postOperation in interface FlowStatefulServiceprotected void postOperationDo(FlowExchanger exchanger, Node node, Operation operation)
public Collection<StatefulTask> getTasks(String chainId, FlowContext context)
getTasks in interface FlowStatefulServicecontext - 流上下文(不需要有参与者配置)public Collection<StatefulTask> getTasks(Chain chain, FlowContext context)
getTasks in interface FlowStatefulServicecontext - 流上下文(不需要有参与者配置)public StatefulTask getTask(String chainId, FlowContext context)
getTask in interface FlowStatefulServicecontext - 流上下文(要有参与者配置)public StatefulTask getTask(Chain chain, FlowContext context)
getTask in interface FlowStatefulServicecontext - 流上下文(要有参与者配置)public void clearState(String chainId, FlowContext context)
FlowStatefulServiceclearState in interface FlowStatefulServicepublic void clearState(Chain chain, FlowContext context)
FlowStatefulServiceclearState in interface FlowStatefulServiceprotected void forwardHandle(FlowDriver driver, Node node, FlowExchanger exchanger, StateType newState)
protected void backHandle(FlowDriver driver, Node node, FlowExchanger exchanger)
node - 流程节点exchanger - 流交换器Copyright © 2025. All rights reserved.