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

RemoveInvalidItems Method


RemoveInvalidItems is called in Check Out workflow. It deletes each record in the Quote Item business component whose Invalid Flag is Y.

Preconditions for Calling the RemoveInvalidItems Method

  • This method is invoked in the eSales - Checkout Process workflow. The sequence called is OrderQuote (see OrderQuote Method), then ValidQuote (see ValidQuote Method), and then RemoveInvalidItems.
  • This method checks only 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 for the RemoveInvalidItems Method

The RemoveInvalidItems method has the arguments shown in Table 33.

Table 33. RemoveInvalidItems 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.

Invalid

Input

String

Y

If equal to N, do nothing.

Else loop through each line item to delete invalid items.

Quote Id

Input

String

Y

Not used.

ReturnVal

Output

String

Y

Returns Success or Fail. Not used.

Pseudo-Algorithm for RemoveInvalidItems

  1. Get the Quote and Quote Item business components.
  2. Check the Invalid input argument:

    If Invalid = N, go to step 4.

  3. For each record in the Quote Item business component, check the Invalid Flag field:

    If the field value is Y, delete the record.

  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 © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.