Product Administration Guide > Creating Validation Rules for Customizable Products >

Setting Up Product Validation Using Custom Validation Services


To create product validation rules, perform the following tasks:

  1. Creating the Customizable Product for Validation
  2. Creating Messages for Product Validation
  3. Creating a Custom Business Service for Product Validation
  4. Adding the Validation Services Record

Creating the Customizable Product for Validation

Validation rules only work on products that have been defined as components of a product with components. They use the Instance ID of the customizable product as the key to retrieve products to validate.

As the first step in creating validation rules, define a product with components whose components include all the products that the rules will apply to. For more information, see Designing Products with Components.

Creating Messages for Product Validation

If your custom business service uses Universal Messaging Service, you must use the Administration - Application screen, then the Message Types view to define the error messages that the product validation rule will display.

For more information about defining messages, see Siebel Order Management Infrastructure Guide.

To create the messages for product validation

  1. Navigate to the Administration - Application screen, then the Message Types view.
  2. In the All Message Types list, add a new record for each message and complete the necessary fields. Some fields are described in the following table.
    Field
    Comments

    Name

    Enter a name for the message record. When you add rules in the Simple Validation Expression Rules list, this name will be used to link the rule to a message.

    Group

    If you are writing a custom validation service, give the group the name that you will call in the validation service.

    Full Text

    Enter the error message that is displayed by the application.

    NOTE:  Only the Full Text field is used by the product validation engine. The Short Text field is ignored.

Creating a Custom Business Service for Product Validation

You can create your own business services to solve specialized business problems, such as the problem described in Scenario for Product Validation Using Custom Validation Services. This business service should follow the guidelines described in About Creating Custom Rule Checkers. For more information about creating business services, see Siebel eScript Language Reference and Siebel VB Language Reference.

Adding the Validation Services Record

The Validation Services record contains the name of the validation business service to call. In this case, you use it to call the custom business service that you created.

To create validation services

  1. Navigate to the Administration - Product screen, then the Products view.
  2. Click the Product Validation view tab.
  3. In the link bar of Product Validation view, click Validation Services.
  4. Add one or more new records to the Validation Services list and complete the necessary fields. Some fields are described in the following table.
    Field
    Comments

    Sequence

    Enter a number that controls the order in which the validation services are executed. You can create an unlimited number of validation services.

    Business Service

    Select the custom business service that you created to execute this rule.

    Rule Type

    Select a rule type. Options are:

    • Compound. This business service will run in the context of the Network Validation routines. For information about network validation, see Siebel Order Management Guide Addendum for Industry Applications.
    • Complex. This business service will run in the context of the Product Validation routines.
    • All. this business service will run in both contexts.

    The option you should select depends on the custom validation service.

Product Administration Guide Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.