Siebel eSales Administration Guide > Shopping Service API > Workflow Methods >
OrderQuote
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. Expected Preconditions Before the Method Can Be Called
This method is invoked in the eSales - Checkout Process workflow. The sequence called is OrderQuote, then ValidQuote (see ValidQuote), and then RemoveInvalidItems (see RemoveInvalidItems). Arguments
The OrderQuote method has the arguments shown in Table 47.
Table 47. OrderQuote Arguments
|
|
|
|
|
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. In order not to kill the workflow, you can set this input to N. This way the Shopping Service will not return an error, but instead will save the error message in the output argument Error Message. You can then handle the error message as you wish. |
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
- Get the Quote and Quote Item business components.
- If there are any records in the Quote Item business component, go to step 3;
Else go to step 4.
- Set the CurrentCheckOutQuoteId profile attribute.
- 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.
|