Bookshelf Home | Contents | Index | Search | PDF |
Siebel eSales Administration Guide > Shopping Service API > Workflow Methods >
ValidQuote
ValidQuote is called in the eSales - Checkout Process workflow to validate the line items in the Shopping Cart. Valid line items are those that do not have an empty Base Price field in the Quote Item business component.
ValidQuote sets the Invalid output argument to Y if there are any line items that are invalid, and also sets Invalid Flag field for each line item that is invalid. The Invalid Flag field is a virtual field in the Quote Item business component that is persistent in the session.
Expected Preconditions Before the Method Can Be Called
- This method is invoked in the eSales - Checkout Process workflow. The sequence called is OrderQuote (see OrderQuote), then ValidQuote, and then RemoveInvalidItems (see RemoveInvalidItems).
- This method only checks the Base Price field in the Quote Item business component. If this field is empty for a record, then the record is invalid. You can override this method to do your own validity checking.
Arguments
The ValidQuote method has the arguments shown in Table 48.
Pseudo-Algorithm
- Get the Quote and Quote Item business component. Create a variable invalidFlag=N.
- For each record in the Quote Item business component, check the Base Price field:
If this field is empty, set invalidFlag = Y and set the Invalid Flag field = Y for that record.
- Set the Invalid output argument = invalidFlag.
- 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.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eSales Administration Guide Published: 18 April 2003 |