PolicyUpdate URL
This URL updates a business policy in a store.
URL structure
- http:// host_name/path/
- The fully qualified name of your WebSphere Commerce Server and the configuration path.
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:
- com.mystore.price.commands.RetrievePricesCmdImpl that has properties nvp1=value1&nvp2=value2
- 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
- Updates a business policy in the WebSphere Commerce database.
Exception conditions
- _ERR_CONTRACT_SYS_GENERIC will be thrown if the policy is not found in the WebSphere Commerce database.
- _ERR_MISSING_CMD_PARAMETER if one of these required parameters are missing.
- _ERR_WRONG_GMT_TIMESTAMP_FORMAT if the startDate or endDate parameter is not in "yyyy-mm-dd hh:mm:ss.fffffffff"