Académique Documents
Professionnel Documents
Culture Documents
0 Essentials
1 of 28
Module Objectives
To know the process of automating business decisions and logic in
Siebel applications using Haley Authority To describe Siebel Business Rules architecture To understand how to create business rules and deploy them
3 of 28
Properties in business components and fields Siebel workflows Siebel state models Occasionally requires custom scripting
Business logic that is distributed throughout the application Difficult to understand the complete set of implemented logic Business logic that is represented in multiple ways with different syntax
Difficult to modify to meet new requirements The need to compile and deploy a new Siebel repository file (SRF)
4 of 28
Business Challenge
5 of 28
Groups of rules, or modules, for different purposes and applications can be developed and deployed separately:
Versioned objects help to easily revert to previous versions. Access levels to modules can be used to define who may modify particular rules and modules
6 of 28
Update records
Implement dynamic read-only/required behavior Compute values of parameters to be used in decision steps in workflow
7 of 28
processes in Siebel applications. Is a conditional or qualified statement about business entities and characteristics that apply in a business environment
Is written using the rules of English grammar
Are created using HaleyAuthority Are executed in the Siebel client using a run-time inference engine
8 of 28
Concepts
Are nouns that represent the entities and their characteristics
Are used to build rule statements Play roles in relations May include nouns or noun phrasings, including adjectives Correspond to business components and fields in the Siebel data model
9 of 28
HaleyAuthority
To implement natural language business rules to automate decisions
declaratively Is a separate third-party application used to examine and develop Siebel business rules
Is installed as part of a Siebel Tools installation Is invoked from the Siebel Tools program group
Imports relevant object definitions from the Siebel development
repository Generates the corresponding Haley concepts Is used to author the rule statements based on the generated concepts Stores concepts and statements in a separate database referred to as a knowledge base Deploys rules to a set of tables in the Siebel run-time client
10 of 28
rules at run time Is installed automatically in the Siebel client during a standard client installation Is accessed by calling the Business Rules Service business service
Serves as the interface to the inference engine
Can be invoked using:
The same business logic (rule module) can be reused in any of these
11 of 28
Exploring Rules
Use HaleyAuthority to examine rules
12 of 28
Structure of Rules
Rules are written using English grammar (natural English) A given rule can be expressed in several ways Common practice is to create statements followed by qualifiers that
13 of 28
Rule Statements
A statement can be either a:
Statement of fact Example: An expense report is a valid expense report Statement of action Set Reimbursable Flag of an expense item to false
Siebel-specific actions consist of three action types
Actions: Produce output or modify data in the Siebel application Set a field value, invalidate with reason Invalidate with reason raises an error but does not stop evaluation of rules Functions: Return a value from the Siebel application Get profile attribute, get active view name Predicates: Return a Boolean value User in task mode, currency is equal to
14 of 28
Concepts
Concepts are generated
15 of 28
Entities
Expand Entity to display the entities
Expense and Expense Item are Business Components imported for these rules
16 of 28
Value
Expand Value and its children types to display the values Represent business component fields imported from the Siebel
repository
Are grouped by the type of the field
17 of 28
Phrasings
Consist of short expressions that capture a relationship between
concepts
Typically represent the relationship between a business component and one of its fields or a child business component
Are used to build rule statements
18 of 28
Developing Rules
1. Create a New Knowledge Base 2. Import Siebel Object Definitions 3. Create a Rule Module 4. Deploy the Rule Module
19 of 28
20 of 28
Master repository data source (source of object definitions) Run-time data source (environment where rules will be run)
21 of 28
immediately:
Object definitions relating to currency and currency code are imported Concepts to support Siebel currency calculation procedures are created Siebel-specific actions, functions, and predicates are created
After currency-related concepts are created:\
Select Import Siebel Objects Specify the Siebel Business Object Select the business component and, possibly, child business components For each selected business component, select one or more fields
Inspect the concepts and the phrasings created Verify that the entities and values corresponding to the objects and
22 of 28
Create a rule module to contain only the statements that need to be evaluated as a set by the rules engine Name the rule module to indicate how the module will be invoked
A module can be divided into submodules to improve readability Click the Modules & Statement tab Add a new module (and submodules if desired) Add one or more statements
23 of 28
In HaleyAuthority select Tools > Siebel Deployment Verify the connection parameters for the run-time data source Select the modules to deploy and click OK
24 of 28
in the rules Click the Activate button in the Rule Modules list applet to set the status to active
Only active rules are evaluated by the rules engine
25 of 28
Create a new action set, and a child action of BusService type In the More Info applet Specify Business Rule Service and RunRules as the business service name and method Specify the rule module name as the context
Create an event record for the business component and test with appropriate data
Specify the desired run-time event Assign the action set Select Reload Runtime Events from the applet menu
26 of 28
Module Highlights
Business policies can be captured by users using Siebel Business
Rules
Are expressed in natural English Developed by client-side configuration
Siebel Business Rules consist of:
Authoring tool accessible from Siebel Tools A run-time execution engine accessed by calling a business service
A rules module consists of multiple statements based on a set of
27 of 28
Lab
In this lab you will:
To examine a rule module and identify the business logic To import the Siebel objects in to the Haley Authority Business Rules Developer and examine them
28 of 28