Product Administration Guide > Siebel Configurator Scripts >

About Siebel Configurator Scripts


A script is a Siebel Visual Basic or Siebel eScript program that runs when a predefined event to which it is assigned occurs during a configuration session. These events occur at specific points when opening or closing a session or processing a user request. You can also place scripts in a declarations area for use by other event-based scripts.

A script can refer to any product that has been added from the product table to a product with components. These are called component products. Scripts can also be used to set attribute values of component products and of the product with components, and of product classes. Scripts cannot be used to refer to relationships or links.

NOTE:  Scripting is not supported on the Product Administration business object. It is recommended that you use the Siebel Business Application for product administration, and create scripts to work with those products.

Scripts have full access to the Siebel API. You can use scripts to call Siebel business components and to provide information to back-end databases through Siebel business services. For a description of basic API methods, see Siebel Configurator API Reference.

In addition, several special Siebel Configurator methods are described in this chapter. These can be included in scripts and allow you to obtain information about the current solution. You can also use them to submit requests to the Siebel Configurator engine. For example, you can write a script and insert it into an event that is called each time an item quantity changes in the current solution. When the user selects or removes an item, this event is called and your script runs. The script can use Siebel Configurator methods to determine the amount of the item or of other items in the current solution and can submit a request to the Siebel Configurator engine to modify item amounts. The script could also perform special computations or update an external application based on information obtained from the Siebel Configurator methods.

The items and rules that comprise the product are called the declarative portion. The declarative portion cannot be modified by scripts. For example, you cannot add or delete rules from a customizable product using scripts.

Scripts are intended to add additional behaviors or features and can be used in several ways:

  • Arithmetic functions. You can use scripting to perform more complex mathematical operations that cannot feasibly be created using configuration rules. For example, if you are configuring a solution for a chemical manufacturing process, you can use calculations based on viscosity, average ambient temperature, and desired throughput to arrive at the correct configuration of pumps and other equipment.
  • External program calls. You can use scripts to make calls to external programs. For example, you can pass information about the current session to external programs.
  • Accessing Siebel objects. You can use all the standard features of Siebel VB and Siebel eScript, including reading and editing Siebel databases and calling Buscomps, BusObjects, and other Siebel objects.
Product Administration Guide Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.