The CancelOrderFormHandler (class atg.commerce.order.purchase.CancelOrderFormHandler) cancels the user’s current Order, which deletes the Order from the ShoppingCart. Core Commerce includes an instance of CancelOrderFormHandler, which is located in Nucleus at /atg/commerce/order/purchase/CancelOrderFormHandler.

The following table describes the important methods in CancelOrderFormHandler.

Method

Description

handleCancelOrder

This handle method calls either the deleteOrder method or the preserveOrder method (depending on whether the Order can be deleted).

deleteOrder

If the state of the current Order is one of the configured states in the CancelOrderFormHandler.deleteStates property, then the deleteOrder method deletes the current Order from the user’s ShoppingCart.

preserveOrder

If the state of the current Order is not one of the configured states in the CancelOrderFormHandler.deleteStates property, then the preserveOrder method simply sends a ModifyOrder GenericRemove notification message to Fulfillment for any action deemed appropriate.

For additional information on the CancelOrderFormHandler, refer to the ATG Platform API Reference.


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices