Reference > Shop flow URLs > Order Management subsystem URLs > Order quotation URLs


OrderQuotationCheck URL

Check for quotation orders then redirect to one of three specified URLs, depending on the results of the check.


URL structure

http:// host/ 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, OrderQuotationCheck , 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

orderQuotationRelId

Specifies the ID of the OrderQuotationRel objects to be checked. The default value of this parameter is "*initial*parent.", an OrderQuotationRel abbreviation specifying all of the OrderQuotationRel objects whose type is "initial" and whose parent is one of the current pending orders for the current user. (OrderQuotationRel abbreviations are described in more detail in the help for Order Management subsystem URLs.) This parameter can be repeated.

outOkOrderQuotationRelIdName

Specifies the name-value pairs that should be added to the redirection URL. The values of the added name-value pairs are the identifiers of the checked OrderQuotationRel objects that have a child order. This parameter can be repeated.

outTimeoutOrderQuotationRelIdName

Specifies the name-value pairs that should be added to the redirection URL. The values of the added name-value pairs are the identifiers of the checked OrderQuotationRel objects that do not yet have child orders but whose timeoutTime attribute values are less than the current time. This parameter can be repeated.

outWaitOrderQuotationRelIdName

Specifies the name-value pairs that should be added to the redirection URL. The values of the added name-value pairs are the identifiers of the checked OrderQuotationRel objects that do not yet have child orders but whose timeoutTime attribute values are not less than the current time. This parameter can be repeated.

okURL

Specifies the redirection URL that is returned if child orders exist for all the checked OrderQuotationRel objects. This parameter is required.

waitURL

Specifies the redirection URL that is returned if some of the checked OrderQuotationRel objects do not yet have child orders but none of them has a timeoutTime less than the current time. The value of this parameter defaults to the value of the okURL parameter.

timeoutURL

Specifies the redirection URL that is returned if some of the checked OrderQuotationRel objects do not yet have child orders but have a timeoutTime less than the current time. The value of this parameter defaults to the value of the waitURL parameter.

errorURL

Specifies the redirection URL that is returned if some of the checked OrderQuotationRel objects indicate that an error status was returned from the external system requested to provide quotation information less than the current time. This parameter is optional.


Example 1

The following example checks for responses to a previous request for initial quotations for the current shopcart. It redirects to one of four different URLs, depending on whether

The identifiers of the OrderQuotationRel objects that have been received, timed out, or are still waiting are returned in the receivedRelIds, timedoutRelIds, and waitingRelIds response properties.

    
http://myhostname/webapp/wcs/stores/servlet/OrderQuotationCheck?storeId=1111
          &orderQuotationRelId=*initial*parent.
          &errorURL=
ShowErrorResponse
          &okURL=
AllResponsesReceived
          &timeoutURL=
SomeResponsesTimedOut
          &waitURL=
ShowWaitingMessagePauseAndCheckAgain
          &outOKOrderQuotationRelIdName=receivedRelIds
          &outTimeoutOrderQuotationRelIdName=timedoutRelIds
          &outWaitOrderQuotationRelIdName=waitingRelIds


Example 2

The following example checks for responses to a previous request for final quotations for the shopcart with order identifier 1234. Otherwise, it is the same as Example 1.

    
http://myhostname/webapp/wcs/stores/servlet/OrderQuotationCheck?storeId=1111
          &orderQuotationRelId=*final*parent1234
          &errorURL=
ShowErrorResponse
          &okURL=
AllResponsesReceived
          &timeoutURL=
SomeResponsesTimedOut
          &waitURL=
ShowWaitingMessagePauseAndCheckAgain
          &outOKOrderQuotationRelIdName=receivedRelIds
          &outTimeoutOrderQuotationRelIdName=timedoutRelIds
          &outWaitOrderQuotationRelIdName=waitingRelIds


Behavior


Exception conditions


Related concepts

Order Management subsystem

Related reference

Order Management subsystem URLs


+

Search Tips   |   Advanced Search