Class CompleteOrderRollbackHandler
java.lang.Object
org.broadleafcommerce.core.checkout.service.workflow.CompleteOrderRollbackHandler
- All Implemented Interfaces:
RollbackHandler<ProcessContext<CheckoutSeed>>
@Component("blCompleteOrderRollbackHandler")
public class CompleteOrderRollbackHandler
extends Object
implements RollbackHandler<ProcessContext<CheckoutSeed>>
Rollback handler to execute after an order has been marked as 'completed' and there is an exception.
1. Change the status back to IN_PROCESS 2. Change the order number back to null 3. Change the submit date back to null
- Author:
- Phillip Verheyden (phillipuniverse)
-
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
-
CompleteOrderRollbackHandler
public CompleteOrderRollbackHandler()
-
-
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
-