Class ProcessActivityActivateActionCmdImpl

  • All Implemented Interfaces:
    AbstractProcessNounActionCmd, ProcessActivityActionCmd,,,,,,

    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
        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.
        activityId - The marketing activity unique ID.
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method calls the marketing runtime to activate the activity.
        Specified by:
        performExecute in interface
        Specified by:
        performExecute in class