com.ibm.commerce.marketing.facade.server.commands

Class ProcessActivityActivateActionCmdImpl

  • All Implemented Interfaces:
    AbstractProcessNounActionCmd, ProcessActivityActionCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ProcessActivityActivateActionCmdImpl
    extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl
    implements ProcessActivityActionCmd
    This command is used to activate a marketing activity. The active activity will be available to customers in the store. The activity must be inactive in order for it to be activated. All the campaign elements will be validated to ensure all the necessary data is available.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessActivityActivateActionCmdImpl

        public ProcessActivityActivateActionCmdImpl()
    • Method Detail

      • validate

        public void validate()
                      throws AbstractApplicationException
        This method validates that all the elements in the activity have all the necessary name value pairs defined. The validateParameters method will be called on the MarketingCampaignElementTaskCmd implementation for every campaign element associated with this activity. An e-mail activity will not be activated if the e-mail has already been sent. An activity will not be activated if it contains an experiment, and this activity is a previous version of the activity.
        Specified by:
        validate in interface AbstractProcessNounActionCmd
        Throws:
        AbstractApplicationException - If an exception is thrown, it contains a list of all the ApplicationErrors returned from the campaign elements.
      • invalidate

        public static void invalidate(java.lang.String activityId)
                               throws java.lang.Exception
        This method invalidates e-Marketing Spot entries in the base cache that are associated with a marketing activity. It issues invalidations for the e-Marketing Spot ID (emsId) and the e-Marketing Spot name (emsName) for all e-Marketing Spots scheduled to the activity.
        Parameters:
        activityId - The marketing activity unique ID.
        Throws:
        java.lang.Exception
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method calls the marketing runtime to activate the activity.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception