Class NullCheckoutRollbackHandler
java.lang.Object
org.broadleafcommerce.core.workflow.state.NullCheckoutRollbackHandler
- All Implemented Interfaces:
RollbackHandler<ProcessContext<CheckoutSeed>>
@Component("blNullCheckoutRollbackHandler")
public class NullCheckoutRollbackHandler
extends Object
implements RollbackHandler<ProcessContext<CheckoutSeed>>
- Author:
- Elbert Bautista (elbertbautista)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrollbackState(Activity<ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String, Object> stateConfiguration) Rollback the state of the activity to what it was prior to execution.
-
Constructor Details
-
NullCheckoutRollbackHandler
public NullCheckoutRollbackHandler()
-
-
Method Details
-
rollbackState
public void rollbackState(Activity<ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String, Object> stateConfiguration) throws RollbackFailureExceptionDescription copied from interface:RollbackHandlerRollback the state of the activity to what it was prior to execution.- Specified by:
rollbackStatein interfaceRollbackHandler<ProcessContext<CheckoutSeed>>- 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
-