@Preview(value="3.4") public class FlowStatefulServiceDefault extends Object implements FlowStatefulService
| Constructor and Description |
|---|
FlowStatefulServiceDefault(FlowEngine flowEngine) |
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(FlowContext context, String chainId, String nodeId, Operation operation)
postOperationIfWaiting in interface FlowStatefulServicepublic boolean postOperationIfWaiting(FlowContext context, Node node, Operation operation)
postOperationIfWaiting in interface FlowStatefulServicepublic void postOperation(FlowContext context, String chainId, String nodeId, Operation operation)
postOperation in interface FlowStatefulServicepublic void postOperation(FlowContext context, Node node, Operation operation)
postOperation in interface FlowStatefulServiceprotected void postOperationDo(FlowContext context, 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(StatefulFlowDriver driver, Node node, FlowContext context, StateType newState)
protected void backHandle(StatefulFlowDriver driver, Node node, FlowContext context)
node - 流程节点context - 流上下文Copyright © 2025. All rights reserved.