atg.commerce.order.abandoned
Class ConvertAbandonedOrder

java.lang.Object
  extended by atg.process.action.ActionImpl
      extended by atg.commerce.order.abandoned.ConvertAbandonedOrder
All Implemented Interfaces:
Action

public class ConvertAbandonedOrder
extends ActionImpl

This action checks to see if the current order is abandoned. If so, it changes the abandonmentState to "CONVERTED" and fires an OrderConverted event if configured to do so.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  AbandonedOrderTools mAbandonedOrderTools
          the AbandonedOrderTools component
static java.lang.String PARAM_ORDER_ID
          parameter: orderId
protected static java.util.ResourceBundle sResourceBundle
          Resource Bundle
 
Constructor Summary
ConvertAbandonedOrder()
           
 
Method Summary
 void configure(java.lang.Object pConfiguration)
          Configures the action using the given configuration object.
protected  void executeAction(ProcessExecutionContext pContext)
          This method executes the action by calling the convertAbandonedOrder method of AbandonedOrderTools.
 void initialize(java.util.Map pParameters)
          Initializes the action with the given parameters.
 
Methods inherited from class atg.process.action.ActionImpl
execute, execute, getActionName, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


sResourceBundle

protected static java.util.ResourceBundle sResourceBundle
Resource Bundle


PARAM_ORDER_ID

public static final java.lang.String PARAM_ORDER_ID
parameter: orderId

See Also:
Constant Field Values

mAbandonedOrderTools

protected AbandonedOrderTools mAbandonedOrderTools
the AbandonedOrderTools component

Constructor Detail

ConvertAbandonedOrder

public ConvertAbandonedOrder()
Method Detail

configure

public void configure(java.lang.Object pConfiguration)
               throws ProcessException
Configures the action using the given configuration object. The configuration object is typically a global Nucleus component which is configured with the information necessary for the action's operation.

Specified by:
configure in interface Action
Overrides:
configure in class ActionImpl
Throws:
ProcessException - if the action could not be configured - for example, because some of the required properties are missing from the configuration

initialize

public void initialize(java.util.Map pParameters)
                throws ProcessException
Initializes the action with the given parameters. The keys in the parameter Map are the String parameter names; the values are the Expression objects representing parameter values. This is done by calling the storeRequiredParameter method of ActionImpl

Specified by:
initialize in interface Action
Overrides:
initialize in class ActionImpl
Throws:
ProcessException - if the action could not be properly initialized - for example, if not all of the required parameters are present in the Map
See Also:
Expression

executeAction

protected void executeAction(ProcessExecutionContext pContext)
                      throws ProcessException
This method executes the action by calling the convertAbandonedOrder method of AbandonedOrderTools. The convertAbandonedOrderMethod will check to see if the order was previously considered ABANDONED, and, if so, will mark the order as CONVERTED

Specified by:
executeAction in class ActionImpl
Throws:
ProcessException - if the action can not be executed