org.broadleafcommerce.core.checkout.service.workflow
Class CompleteOrderRollbackHandler

java.lang.Object
  extended by org.broadleafcommerce.core.checkout.service.workflow.CompleteOrderRollbackHandler
All Implemented Interfaces:
RollbackHandler

@Component(value="blCompleteOrderRollbackHandler")
public class CompleteOrderRollbackHandler
extends Object
implements RollbackHandler

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
CompleteOrderRollbackHandler()
           
 
Method Summary
 void rollbackState(Activity<? extends ProcessContext> activity, ProcessContext processContext, Map<String,Object> stateConfiguration)
          Rollback the state of the activity to what it was prior to execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompleteOrderRollbackHandler

public CompleteOrderRollbackHandler()
Method Detail

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 reverted
processContext - The ProcessContext for the workflow
stateConfiguration - 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.