com.ibm.commerce.marketing.commands

Interface ImportIntelligentOfferAssociationsCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    ImportIntelligentOfferAssociationsCmdImpl


    public interface ImportIntelligentOfferAssociationsCmd
    extends ControllerCommand
    This command is used to import merchandising associations provided in flat files by Coremetrics Intelligent Offer. It is expected that this command be configured to be run by the Scheduler tool in the Administration Console. This command can be used in one of the following two ways:
    1. Import all of the files in a directory that have the format IO_<client ID>_<offer name>_<YYYYMMDD>_I.txt (for example IO_912345_Product_Page_Offer_20100427_I.txt)

      To import all the files in a directory, specify the following parameter:

      • directory - the directory where the flat files are located. Any error logs will be created in this directory.
    2. Import an individual flat file.

      To import one flat file, specify the following parameters:

      • directory - the directory where the flat file is located. Any error logs will be created in this directory.
      • file - the name of the flat file to import. The file name must have the format IO_<client ID>_<offer name>_<YYYYMMDD>_I.txt (for example IO_912345_Product_Page_Offer_20100427_I.txt)
      • offerName - if you do not want the command to determine the offer name from the flat file name, then the offer name can be specified with this parameter. This is only required if the offer name entered in the Intelligent Offer tool contains underscores. In most situations, this parameter is not required. The value of this parameter should match the offer name contained within the flat file provided by Coremetrics.
    The command will determine the offer name from the flat file name. A merchandising association type will be created using the offer name. Any underscores in the offer name will be changed to spaces. The offer will not be imported if the length of the offer name is greater than 32 characters. If the data should be created in a workspace, the following parameters can be specified:
    • workspaceIdentifier - The workspace code is the system generated identifier for the workspace, not the name assigned to the workspace by the Workspace Manager.
    • taskGroupIdentifier - The task group code is the system generated identifier for the task groups, not the name assigned to the task group by the Workspace Manager. Specify either this attribute or the "taskGroupName" attribute.
    • taskGroupName - The name assigned to the task group by the Workspace Manager. Specify either this attribute or the "taskGroupIdentifier" attribute. If you specify this attribute, since multiple task groups can have the same task group name, ensure that there is only one working task group with the specified task group name. Otherwise, the data load utility throws an exception.
    • taskIdentifier - The task code is the system generated identifier for the task, not the name assigned to the task by the Workspace Manager. Specify either this attribute or the "taskName" attribute.
    • taskName - The name assigned to the task by the Workspace Manager. Specify either this attribute or the "taskIdentifier" attribute. If you specify this attribute, since multiple tasks can have the same task name, ensure that there is only one working task with the specified task name. Otherwise, the data load utility throws an exception.
    The command should be set up to run in the store in which the associations should be imported. This command performs the following tasks:
    • If necessary, create a new entry in the MASSOCTYPE database table.
    • If necessary, delete any existing merchandising associations in the store of the specified offer name.
    • Call the catalog data load to import the merchandising associations.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The default implementation class.
        See Also:
        Constant Field Values