public class LogPromotionInfo extends ActionImpl
| Modifier and Type | Field and Description | 
|---|---|
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 and Description | 
|---|
LogPromotionInfo()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
execute, execute, getActionName, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toStringpublic static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
public static final java.lang.String PARAM_ORDER_ID
protected AbandonedOrderTools mAbandonedOrderTools
protected PromotionTools mPromotionTools
protected MutableRepository mAbandonedOrderLogRepository
protected java.lang.String mConvertedOrderItemName
protected java.lang.String mConvertedDatePropertyName
protected java.lang.String mPromotionCountPropertyName
protected java.lang.String mPromotionValuePropertyName
protected java.lang.String mPriceInfoPropertyName
protected java.lang.String mOrderAmountPropertyName
protected java.lang.String mConvertedOrderAmountPropertyName
public void configure(java.lang.Object pConfiguration)
               throws ProcessException
configure in interface Actionconfigure in class ActionImplProcessException - if the action could not be configured
 - for example, because some of the required properties are
 missing from the configurationpublic void initialize(java.util.Map pParameters)
                throws ProcessException
initialize in interface Actioninitialize in class ActionImplProcessException - if the action could not be properly
 initialized - for example, if not all of the required parameters
 are present in the MapExpressionprotected void executeAction(ProcessExecutionContext pContext) throws ProcessException
executeAction in class ActionImplProcessException - if the action can not be executedprotected void logPromotionInfo(java.lang.String pOrderId)
                         throws CommerceException,
                                ProcessException,
                                RepositoryException
pOrderId - The order being converted.ProcessExceptionCommerceExceptionRepositoryExceptionprotected java.sql.Timestamp getTimestamp()