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


PolicyAdd URL

This URL adds a business policy to 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, PolicyAdd , 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 create, as found in the POLICYTYPE database table.

name

Required: The name of the business policy to create.

plcyStoreId

Required: The store ID of the store in which to create this business policy.

cmd_n

The business command class name.

props_n

The parameters for the business command.

commonProps

The parameters for the business policy.

startDate

The start date for the business policy.

endDate

The 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 called MyPricePolicy, in store 204. 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/PolicyAdd?type=Price&name=MyPricePolicy
&plcyStoreId=204&cmd_1=com.mystore.price.commands.RetrievePricesCmdImpl
&props_1=nvp1%3Dvalue1%26nvp2%3Dvalue2
&cmd_2=com.mystore.price.commands.ResolvePriceListsCmd
&props_2=nvp1%3Dvalue1%26nvp2%3Dvalue2
&commonProps=nvp1%3Dvalue1%26nvp2%3Dvalue2&startDate=2003-1-1%2000:00:00&URL=/


Behavior


Exception conditions


+

Search Tips   |   Advanced Search