public class ProcessCtrlStateMachineEngine extends Object implements StateMachineEngine
| 构造器和说明 |
|---|
ProcessCtrlStateMachineEngine() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkStatus(StateMachineInstance stateMachineInstance,
ExecutionStatus[] acceptStatus,
ExecutionStatus[] denyStatus,
ExecutionStatus status,
ExecutionStatus compenStatus,
String operation)
Check if the status is legal
|
StateMachineInstance |
compensate(String stateMachineInstId,
Map<String,Object> replaceParams)
compensate a state machine instance
|
StateMachineInstance |
compensateAsync(String stateMachineInstId,
Map<String,Object> replaceParams,
AsyncCallback callback)
compensate a state machine instance asynchronously
|
StateMachineInstance |
compensateInternal(String stateMachineInstId,
Map<String,Object> replaceParams,
boolean async,
AsyncCallback callback) |
StateInstance |
findOutLastForwardStateInstance(List<StateInstance> stateInstanceList)
Find the last instance of the forward execution state
|
StateMachineInstance |
forward(String stateMachineInstId,
Map<String,Object> replaceParams)
forward restart a failed state machine instance
|
StateMachineInstance |
forwardAsync(String stateMachineInstId,
Map<String,Object> replaceParams,
AsyncCallback callback)
forward restart a failed state machine instance asynchronously
|
protected StateMachineInstance |
forwardInternal(String stateMachineInstId,
Map<String,Object> replaceParams,
boolean skip,
boolean async,
AsyncCallback callback) |
StateMachineConfig |
getStateMachineConfig()
get state machine configurations
|
StateMachineInstance |
reloadStateMachineInstance(String instId)
override state machine instance
|
protected Map<String,Object> |
replayContextVariables(StateMachineInstance stateMachineInstance) |
void |
setStateMachineConfig(StateMachineConfig stateMachineConfig) |
StateMachineInstance |
skipAndForward(String stateMachineInstId,
Map<String,Object> replaceParams)
skip current failed state instance and forward restart state machine instance
|
StateMachineInstance |
skipAndForwardAsync(String stateMachineInstId,
AsyncCallback callback)
skip current failed state instance and forward restart state machine instance asynchronously
|
StateMachineInstance |
start(String stateMachineName,
String tenantId,
Map<String,Object> startParams)
start a state machine instance
|
StateMachineInstance |
startAsync(String stateMachineName,
String tenantId,
Map<String,Object> startParams,
AsyncCallback callback)
start a state machine instance asynchronously
|
StateMachineInstance |
startWithBusinessKey(String stateMachineName,
String tenantId,
String businessKey,
Map<String,Object> startParams)
start a state machine instance with businessKey
|
StateMachineInstance |
startWithBusinessKeyAsync(String stateMachineName,
String tenantId,
String businessKey,
Map<String,Object> startParams,
AsyncCallback callback)
start a state machine instance asynchronously with businessKey
|
public StateMachineInstance start(String stateMachineName, String tenantId, Map<String,Object> startParams) throws EngineExecutionException
StateMachineEnginestart 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance startAsync(String stateMachineName, String tenantId, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
StateMachineEnginestartAsync 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance startWithBusinessKey(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams) throws EngineExecutionException
StateMachineEnginestartWithBusinessKey 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance startWithBusinessKeyAsync(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
StateMachineEnginestartWithBusinessKeyAsync 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance forward(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
StateMachineEngineforward 在接口中 StateMachineEngineForwardInvalidExceptionEngineExecutionExceptionpublic StateMachineInstance forwardAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws EngineExecutionException
StateMachineEngineforwardAsync 在接口中 StateMachineEngineForwardInvalidExceptionEngineExecutionExceptionprotected StateMachineInstance forwardInternal(String stateMachineInstId, Map<String,Object> replaceParams, boolean skip, boolean async, AsyncCallback callback) throws EngineExecutionException
protected Map<String,Object> replayContextVariables(StateMachineInstance stateMachineInstance)
public StateInstance findOutLastForwardStateInstance(List<StateInstance> stateInstanceList)
stateInstanceList - public StateMachineInstance compensate(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
StateMachineEnginecompensate 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance compensateAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws EngineExecutionException
StateMachineEnginecompensateAsync 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance compensateInternal(String stateMachineInstId, Map<String,Object> replaceParams, boolean async, AsyncCallback callback) throws EngineExecutionException
public StateMachineInstance skipAndForward(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
StateMachineEngineskipAndForward 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance skipAndForwardAsync(String stateMachineInstId, AsyncCallback callback) throws EngineExecutionException
StateMachineEngineskipAndForwardAsync 在接口中 StateMachineEngineEngineExecutionExceptionpublic StateMachineInstance reloadStateMachineInstance(String instId)
reloadStateMachineInstance 在接口中 StateMachineEngineinstId - protected boolean checkStatus(StateMachineInstance stateMachineInstance, ExecutionStatus[] acceptStatus, ExecutionStatus[] denyStatus, ExecutionStatus status, ExecutionStatus compenStatus, String operation)
stateMachineInstance - acceptStatus - denyStatus - status - compenStatus - operation - public StateMachineConfig getStateMachineConfig()
StateMachineEnginegetStateMachineConfig 在接口中 StateMachineEnginepublic void setStateMachineConfig(StateMachineConfig stateMachineConfig)
Copyright © 2022 Seata. All rights reserved.