Class RecordOfferUsageRollbackHandler
java.lang.Object
org.broadleafcommerce.core.offer.service.workflow.RecordOfferUsageRollbackHandler
- All Implemented Interfaces:
RollbackHandler<ProcessContext<CheckoutSeed>>
@Component("blRecordOfferUsageRollbackHandler")
public class RecordOfferUsageRollbackHandler
extends Object
implements RollbackHandler<ProcessContext<CheckoutSeed>>
Rolls back audits that were saved in the database from
RecordOfferUsageActivity.- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields -
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.
-
Field Details
-
offerAuditService
-
-
Constructor Details
-
RecordOfferUsageRollbackHandler
public RecordOfferUsageRollbackHandler()
-
-
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
-