com.ibm.commerce.promotion.facade.server.commands

Class ProcessPromotionDeactivateActionCmdImpl

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessPromotionDeactivateActionCmdImpl

        public ProcessPromotionDeactivateActionCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method changes the promotion status to "Inactive", creates a auditing row of the current promotion rule XML in PX_PROMOAUDIT table, and it also sets the state of associated CalulationCode record to "not Published".

        Note: During the deactivation process, if the value of promotion control parameter is "CMC", the rule XML will be re-generated using XSLT transformaiton with the promotion base attributes, specific configuraiton data for the TargetingCondition, PurchaseCondition and CustomConditions will not be available in this generated rule XML. Records in CALCODEMGP, CATENCALCD,CATGPCALCD and SHPMODCLCD that are related to this promotion will also be removed. These informaiton will be rebuilt according to the final authoring data during the promotion activation process. Otherwise only the status of the rule XML will be updated with "Inactive" status.

        When override this method, it is recommended to call the method of the super class in order to maintain the default behaviour.

        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
        See Also:
        TargetableCommand.performExecute()