Reference > Shop flow URLs > Trading subsystem URLs > Account and contract URLs


PolicyUpdate URL

This URL updates a business policy in a store.


URL structure

http:// host_name/path/

The fully qualified name of the WebSphere Commerce Server and the configuration path.

Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, PolicyUpdate , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

type

Required: The type of the policy to update, as found in the POLICYTYPE database table.

name

Required: The name of the business policy 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


Related reference


+

Search Tips   |   Advanced Search