AddBroadcastJob command

This command schedules a broadcast job for the WebSphere Commerce scheduler. 

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, AddBroadcastJob  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path
langId
Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table
storeId
The reference number of the store associated with this command
URL (required)
The URL to be called when the command completes successfully
name
The user on whose behalf the scheduler runs the job. This parameter is pulled from the LOGONID column in the USERREG table
pathInfo (required)
The WebSphere Commerce command the executes for this job. In the following example, the pathInfo is "CleanJob":
request=wcs/servlet/CleanJob?endTime=0100
queryString
The parameters of the command to run.  In the following example, the queryString is "endTime=0100":
     request=wcs/servlet/CleanJob?endTime=0100  
All special characters, such as =, &, /, and ?, must be encoded.

Example 1

This example adds a broadcast job:  

http://myhostname/webapp/wcs/stores/servlet/AddBroadcastJob?pathInfo='/
InterestItemDisplay'&URL=basemall.jsp&name=login999

Example 2

The following example schedules a job which will run the RefreshRegistry command, providing it with the parameter &registryName=top. It will run on behalf of the user wcsadmin, starting immediately: 

    http://myhostname/webapp/wcs/stores/servlet/AddBroadcastJob?name=wcsadmin
    &pathInfo=RefreshRegistry&queryString=registryName%3DStoreRegistry%26URL%3D%2F&URL=/

Behavior

Exception Conditions

None.