public class CustomerAbandonsShoppingCartTriggerTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements CustomerAbandonsShoppingCartTriggerTaskCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
DM_FROM_FORWARD_TRIGGERS_FOR_PROCESSING, EMLPROMO_NAME_PREFIX, GENERIC_USER_ID
defaultCommandClassName
Constructor and Description |
---|
CustomerAbandonsShoppingCartTriggerTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
forwardTriggersForProcessing()
This method finds all the customers who have abandoned their shopping cart,
and forwards the trigger to the marketing services
for each customer.
|
java.util.List |
getOwnersOfAbandonedShoppingCarts(java.lang.Integer storeId,
java.lang.String afterDate,
java.lang.String beforeDate)
This method gets the member IDs and personalization IDs for customers who have abandoned
their shopping cart.
|
void |
processAbandonedCartsInStore(java.lang.Integer storeId,
java.lang.Integer elementId,
java.lang.Integer activityId)
This method finds all the users who have abandoned their shopping cart, and forwards the trigger
for each user.
|
java.util.List |
validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for
the campaign element.
|
addEMarketingSpotDataBean, forwardTriggersForProcessing, getActivity, getDataFromTriggerParameters, getElementId, getElementParameters, getEMarketingSpotDataBeans, getExperimentTestElements, getMarketingContent, getMarketingSpotBehavior, getMemberId, getMemberId, getMemberIdsForPersonalizationId, getMemberIdsForPersonalizationId, getNewElementParameters, getPersonalizationId, getPreviewReport, getRegisteredMemberIdForPersonalizationId, getReturnValue, getStoreId, getTemporarySharedData, getTemporarySharedDataObject, getTriggerParameters, getTriggerParametersMap, getUserDataForElement, isReadyToCallExecute, performExecute, putTemporarySharedDataObject, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setOutputProperties, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters, validateCategory, validateCustomerSegment, validateDates, validateElementIsFirstInActivity, validateEmailTemplate, validateMarketingContent, validateMarketingContent, validateMarketingSpot, validateProduct, validatePromotion, validatePromotionCodes, validatePromotionCodesOrCoupon, validatePromotionCoupon, validatePromotionDisplay, validateSubscription, validateTimes
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEMarketingSpotDataBeans, getMarketingSpotBehavior, getNewElementParameters, getReturnValue, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public CustomerAbandonsShoppingCartTriggerTaskCmdImpl()
public java.util.List validateParameters(java.util.Map elementParameters)
validateParameters
in interface MarketingCampaignElementTaskCmd
validateParameters
in class MarketingCampaignElementTaskCmdImpl
elementParameters
- The name value pairs for this element.ApplicationError
exceptions
that contains any validation errors. The list may be empty or be null
.public void forwardTriggersForProcessing()
forwardTriggersForProcessing
in interface MarketingCampaignElementTaskCmd
forwardTriggersForProcessing
in class MarketingCampaignElementTaskCmdImpl
public void processAbandonedCartsInStore(java.lang.Integer storeId, java.lang.Integer elementId, java.lang.Integer activityId) throws java.lang.Exception
storeId
- The identifier of the store in which to find the users in the segment.elementId
- The identifier of the trigger element.activityId
- The identifier of the marketing activity.java.lang.Exception
public java.util.List getOwnersOfAbandonedShoppingCarts(java.lang.Integer storeId, java.lang.String afterDate, java.lang.String beforeDate) throws java.lang.Exception
beforeDate
parameter. The afterDate
parameter restricts the query to find carts whose last update date is between
afterDate
and before beforeDate
.storeId
- The unique ID of the store.afterDate
- The oldest value allowed for the shopping cart last update date.beforeDate
- The most recent value allowed for the shopping cart last update date.java.lang.Exception