public interface StateMachineEngine
| Modifier and Type | Method and Description |
|---|---|
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 |
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
|
StateMachineConfig |
getStateMachineConfig()
get state machine configurations
|
StateMachineInstance |
reloadStateMachineInstance(String instId)
Reload StateMachine Instance
|
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
|
StateMachineInstance start(String stateMachineName, String tenantId, Map<String,Object> startParams) throws EngineExecutionException
stateMachineName - the state machine nametenantId - the tenant idstartParams - the start paramsEngineExecutionException - the engine execution exceptionStateMachineInstance startWithBusinessKey(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams) throws EngineExecutionException
stateMachineName - the state machine nametenantId - the tenant idbusinessKey - the businessKeystartParams - the start paramsEngineExecutionException - the engine execution exceptionStateMachineInstance startAsync(String stateMachineName, String tenantId, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
stateMachineName - the state machine nametenantId - the tenant idstartParams - the start paramscallback - callback after start machineEngineExecutionException - the engine execution exceptionStateMachineInstance startWithBusinessKeyAsync(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
stateMachineName - the state machine nametenantId - the tenant idbusinessKey - the businessKeystartParams - the start paramscallback - the callback after start a state machineEngineExecutionException - the engine execution exceptionStateMachineInstance forward(String stateMachineInstId, Map<String,Object> replaceParams) throws ForwardInvalidException
stateMachineInstId - the state machine instance idreplaceParams - the replace paramsForwardInvalidException - forward invalid exceptionStateMachineInstance forwardAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws ForwardInvalidException
stateMachineInstId - the state machine instance idreplaceParams - the replace paramscallback - callback after forward restart a failed state machineForwardInvalidException - the forward invalid exceptionStateMachineInstance compensate(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
stateMachineInstId - the state machine idreplaceParams - the replace paramsEngineExecutionException - the engin execution exceptionStateMachineInstance compensateAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws EngineExecutionException
stateMachineInstId - the state machine instance idreplaceParams - the replace paramscallback - callback after compensate a failed state machineEngineExecutionException - the engine execution exceptionStateMachineInstance skipAndForward(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
stateMachineInstId - the state machine instance idEngineExecutionException - the engine execution exceptionStateMachineInstance skipAndForwardAsync(String stateMachineInstId, AsyncCallback callback) throws EngineExecutionException
stateMachineInstId - the state machine instance idcallback - callback after skip and forward restart a failed state machineEngineExecutionException - the engine execution exceptionStateMachineConfig getStateMachineConfig()
StateMachineInstance reloadStateMachineInstance(String instId)
instId - the state machine instance idCopyright © 2023 Seata. All rights reserved.