|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityStateManager
Manages activity state for the current thread during workflow execution. Provides facility for registering state and RollbackHandler instances, as well as initiating rollbacks of previously registered state.
| Method Summary | |
|---|---|
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 activity,
ProcessContext processContext,
RollbackHandler rollbackHandler,
Map<String,Object> stateItems)
Register a RollbackHandler instance and some arbitrary state items with the StateManager. |
void |
registerState(Activity 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. |
| Method Detail |
|---|
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 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 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 reason
void 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 limited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||