org.broadleafcommerce.core.workflow.state
Interface RollbackHandler
- All Known Implementing Classes:
- CommitTaxRollbackHandler
public interface RollbackHandler
Implementations are responsible for performing compensating operations to revert the state of the activity to what it
was prior to execution. Activity, ProcessContext and stateConfiguration variables can be used to gather the necessary
information to successfully perform the compensating operation.
- Author:
- Jeff Fischer
rollbackState
void rollbackState(Activity<? extends ProcessContext> activity,
ProcessContext processContext,
Map<String,Object> stateConfiguration)
throws RollbackFailureException
- Rollback the state of the activity to what it was prior to execution.
- Parameters:
activity - The Activity instance whose state is being revertedprocessContext - The ProcessContext for the workflowstateConfiguration - Any user-defined state configuration associated with the RollbackHandler
- Throws:
RollbackFailureException - if there is a failure during the execution of the rollback
Copyright © 2013. All Rights Reserved.