Siebel Business Rules Administration Guide > Implementing Rules in Scripts >

Implementing a Rules Module to Execute From Script


You can invoke the Business Rule Service business service from scripts. A typical scenario in which to use a script to invoke Business Rule Service is when you need to process the output from Business Rule Service to make further decisions.

Using content in the output property set of Business Rule Service allows decisions to be made programmatically based on the results of rules execution. Such decision-making strategies are powerful options in applications such as Siebel Workflow and Task-Based UI flows.

For information on implementing rules in workflows and tasks, see Implementing Rules in Siebel Workflows and Implementing Rules in Siebel Task-Based UI respectively.

You must complete the following tasks before you create script to invoke rules:

  • Create rule modules in HaleyAuthority.
  • Deploy the rule modules from HaleyAuthority.
  • Configure and activate the rule modules in the Siebel application's Administration - Business Rules screen.

Creating a script to invoke rules consists of the following tasks:

  • Identify the business component event with which the script is associated.
  • Declare a service variable that contains the Business Rule Service business service.
  • Declare input and output property sets for Business Rule Service.
  • Build the input property set for Business Rule Service.
    • If you define the BusCompList input property explicitly, then:
      • Identify the business components and fields in the hierarchy.
      • Build the business component-field hierarchy; that is, define the parent/child relationships.
    • If you define the BusCompList input property implicitly, then provide the top-level business component only to the BusCompList input property.

      NOTE:  To define BusCompList implicitly, you must set the GetMoreData input property to Y.

    • Fill in the data for the other three input properties.

      For requirements for setting the GetMoreData and PerformAction input properties, see Setting the GetMoreData Input Property and Setting the PerformAction Input Property.

      For detailed information about the input property set for Business Rule Service and to see a sample input property set, see About the Input Property Set to Business Rule Service.

  • Invoke the Business Rule Service business service
  • Process Business Rule Service output data, if any output data must be accessed.

    For detailed information about the output property set of Business Rule Service, and to see a sample output property set, see About the Output Property Set of Business Rule Service.

Siebel Business Rules Administration Guide Copyright © 2007, Oracle. All rights reserved.