Siebel eSales Administration Guide > Shopping Service Methods Reference > Siebel eSales Workflow Methods >

OrderQuote Method


OrderQuote is called in the eSales - Checkout Process workflow. It checks if there are any line items in the Shopping Cart. It returns an error if the Shopping Cart does not have any line items. It also sets the CurrentCheckOutQuoteId profile attribute.

Preconditions for Calling the OrderQuote Method

This method is invoked in the eSales - Checkout Process workflow. The sequence called is OrderQuote, then ValidQuote (see ValidQuote Method), and then RemoveInvalidItems (see RemoveInvalidItems Method).

Arguments for the OrderQuote Method

The OrderQuote method has the arguments shown in Table 33.

Table 33. OrderQuote Arguments
Name
Type
Data Type
Optional
Comments

Return Error Code

Input

String

Y

If equal to N, the method will not return errors.

When a method returns an error, the workflow stops. To avoid stopping the workflow, you can set this input to N. This way the Shopping Service will not return an error, but instead save the error message in the output argument Error Message. You can then handle the error message as you want.

Error Message

Output

String

Y

Stores error messages.

Quote Id

Input

String

Y

Not used.

ReturnVal

Output

String

Y

Returns Success or Fail. Not used.

Pseudo-Algorithm for OrderQuote

  1. Get the Quote and Quote Item business components.
  2. If there are any records in the Quote Item business component, go to step 3;

    Else go to step 4.

  3. Set the CurrentCheckOutQuoteId profile attribute.
  4. Set the Error Message output argument if there is any error;

    If Return Error Code = N, do not return an error;

    Else return an error.

Siebel eSales Administration Guide Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.