org.broadleafcommerce.core.offer.service.workflow
Class RecordOfferUsageRollbackHandler
java.lang.Object
org.broadleafcommerce.core.offer.service.workflow.RecordOfferUsageRollbackHandler
- All Implemented Interfaces:
- RollbackHandler
@Component(value="blRecordOfferUsageRollbackHandler")
public class RecordOfferUsageRollbackHandler
- extends Object
- implements RollbackHandler
Rolls back audits that were saved in the database from RecordOfferUsageActivity.
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
RecordOfferUsageActivity}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offerAuditService
protected OfferAuditService offerAuditService
RecordOfferUsageRollbackHandler
public RecordOfferUsageRollbackHandler()
rollbackState
public void rollbackState(Activity<? extends ProcessContext> activity,
ProcessContext processContext,
Map<String,Object> stateConfiguration)
throws RollbackFailureException
- Description copied from interface:
RollbackHandler
- Rollback the state of the activity to what it was prior to execution.
- Specified by:
rollbackState in interface RollbackHandler
- 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.