com.ibm.commerce.marketing.commands.elements

Class AbstractPromotionEvaluationMarketingActivityTaskCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • PARAM_PROMOTION_ID

        public static final java.lang.String PARAM_PROMOTION_ID
        Constant of parameter key to specify the promotion Id - "promotionIdList"
        See Also:
        Constant Field Values
      • PARAM_PROMOTION_TEMPLATE

        public static final java.lang.String PARAM_PROMOTION_TEMPLATE
        Constant of parameter key to specify the promotion template name - "promotionTemplate"
        See Also:
        Constant Field Values
      • PARAM_PAYMENT_TYPE

        public static final java.lang.String PARAM_PAYMENT_TYPE
        Constant of parameter key to specify the simulated payment type - "paymentType"
        See Also:
        Constant Field Values
      • PARAM_SHIP_MODE

        public static final java.lang.String PARAM_SHIP_MODE
        Constant of parameter key to specify the simulated ship mode - "shipMode"
        See Also:
        Constant Field Values
      • PARAM_AS_GENERIC_USER

        public static final java.lang.String PARAM_AS_GENERIC_USER
        Constant of parameter key to specify whether the GenericUser(-1002) will be used for the simulated promotion evaluation - "AsGenericUser"
        See Also:
        Constant Field Values
      • PARAM_SKIP_MULTIPLE_CHILD_ITEMS

        public static final java.lang.String PARAM_SKIP_MULTIPLE_CHILD_ITEMS
        Constant of parameter key to specify whether the simulated promotion evaluation should be skipped if the input catalog entry contains product with multiple child items - "skipMultipleChildItems"
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this class.
    • Constructor Detail

      • AbstractPromotionEvaluationMarketingActivityTaskCmdImpl

        public AbstractPromotionEvaluationMarketingActivityTaskCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
        This method builds a simulated order object according to the type of the input catalog entry. Then it evaluates the specified promotion or promotions with this order and gets the evaluation result. At last, it calls the processResult() method to process the evaluation result.

        The following element parameter must be provided for the task command:

        • promotionIdList to get the promotion ID.
        The following URL parameters must be provided for the task command:
        • productId to get the catalog entry ID.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class MarketingCampaignElementTaskCmdImpl
        See Also:
        MarketingCampaignElementTaskCmdImpl.performExecute()