PolicyUpdate command (Business Edition)

This command updates a business policy in a store.

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, PolicyUpdate  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

type
(Required) The type of the policy you want to update, as found in the POLICYTYPE database table.
name
(Required) The name of the business policy you want to update.
plcyStoreId
(Required) The store ID of the store to which this business policy.
cmd_n
The business command class name to update.
props_n
The complete properties to update for the business command.
prop_n
A single name-value pair to update in the properties for the business command.
commonProps
The complete properties to update for the business policy
commonProp
A single name/value pair to update in the properties for the business policy
startDate
The new start date for the business policy
endDate
The new end date for the business policy
URL
(Required) The URL to be called when the command completes successfully.

Example

The following example creates a price business policy in store 204 called MyPricePolicy. The policy has properties nvp1=value1 and nvp2=value2 and a start date of January 1, 2003. The policy has 2 business commands:

  1. com.mystore.price.commands.RetrievePricesCmdImpl that has properties nvp1=value1&nvp2=value2
  2. com.mystore.price.commands.ResolvePriceListsCmd that has properties nvp1=value1&nvp2=value2
https://myhostname/webapp/wcs/stores/servlet/PolicyUpdate?type=Price
&name=MyPricePolicy&plcyStoreId=204
&cmd_1=com.mystore.price.commands.RetrievePricesCmdImpl
&props_1=nvp1%3Dnewvalue1%26nvp2%3Dnewvalue2
&cmd_2=com.mystore.price.commands.ResolvePriceListsCmd&prop_2=nvp2%3Dnewvalue2&URL=/

Behavior

Exception conditions