public interface StateMachineEngine
| 限定符和类型 | 方法和说明 |
|---|---|
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 - tenantId - startParams - EngineExecutionExceptionStateMachineInstance startWithBusinessKey(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams) throws EngineExecutionException
stateMachineName - tenantId - businessKey - startParams - EngineExecutionExceptionStateMachineInstance startAsync(String stateMachineName, String tenantId, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
stateMachineName - tenantId - startParams - callback - EngineExecutionExceptionStateMachineInstance startWithBusinessKeyAsync(String stateMachineName, String tenantId, String businessKey, Map<String,Object> startParams, AsyncCallback callback) throws EngineExecutionException
stateMachineName - tenantId - businessKey - startParams - callback - EngineExecutionExceptionStateMachineInstance forward(String stateMachineInstId, Map<String,Object> replaceParams) throws ForwardInvalidException
stateMachineInstId - replaceParams - ForwardInvalidExceptionStateMachineInstance forwardAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws ForwardInvalidException
stateMachineInstId - replaceParams - callback - ForwardInvalidExceptionStateMachineInstance compensate(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
stateMachineInstId - replaceParams - EngineExecutionExceptionStateMachineInstance compensateAsync(String stateMachineInstId, Map<String,Object> replaceParams, AsyncCallback callback) throws EngineExecutionException
stateMachineInstId - replaceParams - callback - EngineExecutionExceptionStateMachineInstance skipAndForward(String stateMachineInstId, Map<String,Object> replaceParams) throws EngineExecutionException
stateMachineInstId - EngineExecutionExceptionStateMachineInstance skipAndForwardAsync(String stateMachineInstId, AsyncCallback callback) throws EngineExecutionException
stateMachineInstId - callback - EngineExecutionExceptionStateMachineConfig getStateMachineConfig()
StateMachineInstance reloadStateMachineInstance(String instId)
instId - Copyright © 2020 Seata. All rights reserved.