atg.commerce.order.abandoned
Class LogPromotionInfo

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

public class LogPromotionInfo
extends ActionImpl

This action logs the number of promotions and total value of promotions for an order.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  MutableRepository mAbandonedOrderLogRepository
          the AbandonedOrderLogRepository component
protected  AbandonedOrderTools mAbandonedOrderTools
          the AbandonedOrderTools component
protected  java.lang.String mConvertedDatePropertyName
          the ConvertedDate property name
protected  java.lang.String mConvertedOrderAmountPropertyName
          the amount property of the convertedOrder item
protected  java.lang.String mConvertedOrderItemName
          the ConvertedOrder item descriptor name
protected  java.lang.String mOrderAmountPropertyName
          the amount property of the priceInfo item
protected  java.lang.String mPriceInfoPropertyName
          the priceInfo property name of the order item
protected  java.lang.String mPromotionCountPropertyName
          the PromotionCount property name
protected  PromotionTools mPromotionTools
          the PromotionTools component
protected  java.lang.String mPromotionValuePropertyName
          the PromotionValue property name
static java.lang.String PARAM_ORDER_ID
          parameter: orderId
protected static java.util.ResourceBundle sResourceBundle
          Resource Bundle
 
Constructor Summary
LogPromotionInfo()
           
 
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 setLastUpdated method of AbandonedOrderTools.
protected  java.sql.Timestamp getTimestamp()
          Gets the current time as a timestamp.
 void initialize(java.util.Map pParameters)
          Initializes the action with the given parameters.
protected  void logPromotionInfo(java.lang.String pOrderId)
          Creates the converted order item and sets the related promotion information.
 
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


mPromotionTools

protected PromotionTools mPromotionTools
the PromotionTools component


mAbandonedOrderLogRepository

protected MutableRepository mAbandonedOrderLogRepository
the AbandonedOrderLogRepository component


mConvertedOrderItemName

protected java.lang.String mConvertedOrderItemName
the ConvertedOrder item descriptor name


mConvertedDatePropertyName

protected java.lang.String mConvertedDatePropertyName
the ConvertedDate property name


mPromotionCountPropertyName

protected java.lang.String mPromotionCountPropertyName
the PromotionCount property name


mPromotionValuePropertyName

protected java.lang.String mPromotionValuePropertyName
the PromotionValue property name


mPriceInfoPropertyName

protected java.lang.String mPriceInfoPropertyName
the priceInfo property name of the order item


mOrderAmountPropertyName

protected java.lang.String mOrderAmountPropertyName
the amount property of the priceInfo item


mConvertedOrderAmountPropertyName

protected java.lang.String mConvertedOrderAmountPropertyName
the amount property of the convertedOrder item

Constructor Detail

LogPromotionInfo

public LogPromotionInfo()
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.

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 setLastUpdated method of AbandonedOrderTools.

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

logPromotionInfo

protected void logPromotionInfo(java.lang.String pOrderId)
                         throws CommerceException,
                                ProcessException,
                                RepositoryException
Creates the converted order item and sets the related promotion information.

Parameters:
pOrderId - The order being converted.
Throws:
ProcessException
CommerceException
RepositoryException

getTimestamp

protected java.sql.Timestamp getTimestamp()
Gets the current time as a timestamp.