public interface ActivityStateManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllState()
Remove all previously registered RollbackHandlers for the current workflow
|
void |
clearRegionState(String region)
Remove all previously registered Rollbackhandlers for the current workflow labelled with the specified region
|
void |
registerState(Activity<? extends ProcessContext> activity,
ProcessContext processContext,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the
StateManager.
|
void |
registerState(Activity<? extends ProcessContext> activity,
ProcessContext processContext,
String region,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the
StateManager.
|
void |
registerState(RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the
StateManager.
|
void |
rollbackAllState()
Cause the StateManager to call all registered RollbackHandlers
|
void |
rollbackRegionState(String region)
Cause the StateManager to call all registered RollbackHandlers in the specified region.
|
void registerState(RollbackHandler rollbackHandler, Map<String,Object> stateItems)
rollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)void registerState(Activity<? extends ProcessContext> activity, ProcessContext processContext, RollbackHandler rollbackHandler, Map<String,Object> stateItems)
activity - the current activity associated with the RollbackHandler (can be null)processContext - the current ProcessContext associated with the activity (can be null)rollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)void registerState(Activity<? extends ProcessContext> activity, ProcessContext processContext, String region, RollbackHandler rollbackHandler, Map<String,Object> stateItems)
activity - the current activity associated with the RollbackHandler (can be null)processContext - the current ProcessContext associated with the activity (can be null)region - Label this rollback handler with a particular name.rollbackHandler - A RollbackHandler instance that should be executed by the StateManagerstateItems - Configuration items for the RollbackHandler (can be null)void rollbackAllState()
throws RollbackFailureException
RollbackFailureException - if the rollback fails for some reasonvoid rollbackRegionState(String region) throws RollbackFailureException
RollbackFailureException - if the rollback fails for some reasonvoid clearAllState()
void clearRegionState(String region)
region - The region to which the scope of removal is limitedCopyright © 2015. All Rights Reserved.