Skip Headers
Oracle® Business Rules User's Guide
10
g
Release 3 (10.1.3)
B15986-01
Home
Solution Area
Index
Next
Contents
Title and Copyright Information
Preface
Audience
Documentation Accessibility
Related Documentation
Conventions
1
Overview of Oracle Business Rules
1.1
Introduction to Oracle Business Rules
1.1.1
What Are Business Rules?
1.1.2
What Is a Data Model?
1.1.3
What Is a Rule-Based System?
1.1.3.1
Rule-Based Systems Using the Rete Algorithm
1.1.3.2
Oracle Business Rules Rule-Based Systems
1.2
Oracle Business Rules Components
1.2.1
Introducing Oracle Business Rules Rule Author
1.2.2
Introducing Oracle Business Rules Rules SDK
1.2.3
Introducing Oracle Business Rules RL Language
1.2.4
Introducing Oracle Business Rules Rules Engine
1.3
Oracle Business Rules Rule Author Terms and Concepts
1.3.1
Working with Rules
1.3.1.1
Rule Conditions
1.3.1.2
Rule Actions
1.3.2
Working with Rule Sets
1.3.3
Working with Repositories and Dictionaries
1.3.4
Working with Facts
1.3.4.1
Java Fact Type Definitions
1.3.4.2
XML Fact Type Definitions
1.3.4.3
Oracle Business Rules RL Language Fact Type Definitions
1.3.5
Working with Functions Variables and Constraints
1.3.5.1
Function Definitions
1.3.5.2
Constraint Definitions
1.3.5.3
Variable Definitions
1.4
Steps for Rule Enabling a Java Application
1.4.1
Identify Application Areas to Rule Enable
1.4.2
Provide Rule Author Definitions for the Data Model
1.4.3
Develop a Business Vocabulary for the Data Model
1.4.4
Write and Customize Rules
1.4.5
Modify or Create Application Logic that Uses the Rules Engine
1.4.6
Test the Rule Enabled Application
2
Getting Started with Rule Author
2.1
Creating a Rule Author User
2.2
Starting Rule Author
2.3
Rule Author Home Page
2.4
Creating and Saving a Dictionary for the Car Rental Sample
2.4.1
Connecting to a Rule Author Repository
2.4.2
Creating a Rule Author Dictionary
2.4.3
Saving a Rule Author Dictionary with a Version
2.4.4
Saving a Rule Author Dictionary
2.5
Defining a Data Model for the Car Rental Sample
2.5.1
Using Java Objects as Facts in the Car Rental Sample
2.5.2
Adding Java Classes and Packages to Rule Author
2.5.3
Importing Java Classes to a Data Model
2.5.4
Saving the Current State of Definitions
2.6
Defining Business Vocabulary for the Car Rental Sample
2.6.1
Specifying the Business Vocabulary for Java Fact Definitions
2.6.2
Specifying the Business Vocabulary for Functions
2.6.3
Specifying the Visibility for Properties and Methods
2.7
Defining a Rule for the Car Rental Sample
2.7.1
Creating a Rule Set for the Car Rental Sample
2.7.2
Creating a Rule for the Car Rental Sample
2.7.2.1
Adding the Under Age Rule for the Car Rental Sample
2.7.2.2
Adding a Pattern to the UnderAge Rule
2.7.2.3
Defining Tests for Patterns with the Under Age Rule
2.7.2.4
Adding Actions for the Under Age Rule
2.8
Customizing Rules for the Car Rental Sample
2.9
Creating a Java Application Using Oracle Business Rules
2.9.1
Importing the Rules SDK and Rules RL Classes
2.9.2
Initialize the Repository with Rules SDK
2.9.3
Loading a Dictionary with Rules SDK
2.9.4
Specifying a Rule Set and Generating RL with Rules SDK
2.9.5
Initializing and Executing a Rule Session
2.9.6
Asserting Business Objects Within a Rule Session
2.9.7
Using the Run Function with a Rule Session
2.10
Running the Car Rental Sample Using the Test Program
3
Working With Rule Author Features
3.1
Working with Variables
3.2
Working with Constraints
3.3
Working with RLFacts
3.4
Working with Functions
3.5
Viewing Java Objects in a Data Model
3.5.1
Specifying Visibility and Object Chaining for Rule Author Drop Down Lists
3.6
Generating Oracle Business Rules RL Language Text
3.6.1
Generating and Viewing an RL Language Program
3.7
Configuring Rule Author Dictionary Properties
3.7.1
Using the Advanced Test Expression Option
3.7.2
Using the Logging Option
3.8
Deleting a Rule Author Dictionary
3.9
Importing and Exporting a Dictionary
3.10
Working with Test Rulesets
3.11
Invoking Rules
3.11.1
Overview of Results Examples
3.11.2
Using a Global Variable to Obtain Results
3.11.3
Using Container Objects to Obtain Results
3.11.4
Using Reasoned On Objects to Obtain Results
4
Using XML Facts with Rule Author
4.1
Overview of Using XML Documents and Schemas with Rule Author
4.2
Creating and Saving a Dictionary for the XML Car Rental Sample
4.2.1
Connecting to a Rule Author Repository
4.2.2
Creating a Rule Author Dictionary
4.2.3
Saving a Rule Author Dictionary with a Version
4.2.4
Saving a Rule Author Dictionary
4.3
Defining a Data Model for the XML Car Rental Sample
4.3.1
Using XML Schema as Facts in the XML Car Rental Sample
4.3.2
Adding XML Facts for the Car Rental Sample (XML Schema Processing)
4.3.3
Importing XML Schema Elements to a Data Model
4.3.4
Viewing XML Facts in a Data Model
4.3.5
Saving the Current State of XML Fact Definitions
4.4
Defining Business Vocabulary for the XML Car Rental Sample
4.4.1
Specifying the Business Vocabulary for XML Fact Definitions
4.4.2
Specifying the Business Vocabulary for Functions
4.5
Defining a Rule for the XML Car Rental Sample
4.5.1
Creating a Rule Set for the XML Car Rental Sample
4.5.2
Creating a Rule for the XML Car Rental Sample
4.5.2.1
Adding the Under Age Rule for the XML Car Rental Sample
4.5.2.2
Adding a Pattern to the Under Age Rule (XML)
4.5.2.3
Defining Tests for Patterns with the Under Age Rule (XML)
4.5.2.4
Adding Actions for the Under Age Rule (XML)
4.6
Customizing Rules for the XML Car Rental Sample
4.7
Creating a Java Application with a Rule Session Using XML Facts
4.7.1
Importing the Rules SDK and Rules RL Classes
4.7.2
Creating a JAXB Context and Unmarshalling the XML Document
4.7.3
Loading a Dictionary with Rules SDK
4.7.4
Loading a Ruleset and Generating RL Language for Data Model and Rule Set
4.7.5
Initializing and Executing a Rule Session
4.7.6
Asserting XML Data from Within a Rule Session
4.7.7
Using the Run Function with a Rule Session
4.8
Running the XML Car Rental Sample Using the Test Program
5
Using JSR-94
5.1
Oracle Business Rules with JSR-94 Rule Execution Sets
5.1.1
Creating a JSR-94 Rule Execution Set from Rule Sets in a File Repository
5.1.2
Creating a JSR-94 Rule Execution Set from a WebDAV Repository
5.1.3
Creating a Rule Execution Set from Oracle Business Rules RL Language Text
5.1.4
Creating a Rule Execution Set from RL Text Specified in a URL
5.1.5
Creating Rule Execution Sets with Rule Sets from Multiple Sources
5.2
Using the JSR-94 Interface with Oracle Business Rules
5.2.1
Creating a Rule Execution Set with CreateRuleExecutionSet
5.2.2
Creating a Rule Session with createRuleSession
5.2.3
Working with JSR-94 Metadata
5.2.4
Using Oracle Business Rules JSR-94 Extensions
5.2.4.1
Using the Extended createRuleExecutionSet to Create a Rule Execution Set
5.2.4.2
Invoking an RL Function in JSR-94
6
Using Oracle Business Rules SDK
6.1
Rules SDK building blocks
6.2
Working with a Repository and a Dictionary
6.2.1
Establishing Contact with a WebDAV Repository
6.2.2
Establishing Contact with a File Repository
6.2.3
Loading a Dictionary
6.3
Working with a Data Model
6.3.1
Creating a DataModel
6.3.2
Creating DataModel Components
6.3.3
Creating a Function Argument List
6.3.4
Creating an Initializing Expression
6.3.5
Creating RL Function Bodies
6.4
Using RuleSets and Creating and Modifying Rules
6.4.1
Creating a RuleSet
6.4.2
Adding a Rule to a Ruleset
6.4.3
Adding a Pattern to a Rule
6.4.4
Adding a Test to a Pattern
6.4.5
Adding an Action to a Rule
6.4.6
Notes for Adding RuleSets and Rules
A
Oracle Business Rules Files and Limitations
A.1
Rule Author Naming Conventions
A.1.1
Ruleset Naming
A.1.2
Dictionary Naming
A.1.3
Version Naming
A.1.4
Alias Naming
A.1.5
XML Schema Target Package Naming
A.2
Rule Author Session Timeout
A.3
Rules SDK and Rule Author Temporary Files
B
Using Rule Author and Rules SDK with Repositories
B.1
Working with a WebDAV Repository
B.1.1
Setting up a WebDAV Repository
B.1.2
Connecting to a WebDAV Repository
B.2
WebDAV Repository Security
B.2.1
Communicating with a WebDAV Repository Over SSL from Rule Author
B.2.2
Setting the Location of your Oracle Wallet
B.2.3
Configuring Rule Author for WebDAV Repository Authentication
B.2.4
Storing Data in an Oracle Wallet for WebDAV Repository Authentication
B.3
Working with a File Repository
B.3.1
Setting up a File Repository
B.3.2
File Repository Updates and Temporary Files
B.4
High Availability for your Repository
C
Oracle Business Rules Frequently Asked Questions
C.1
Frequently Asked Questions About Rules Operations
C.1.1
Why is the State of a Fact in a Rule Action Inconsistent with the Rule Condition?
C.1.2
A Changed Java Object was Asserted as a Fact, but no Rules Fired. Why?
C.1.3
What are the Differences Between Oracle Business Rules RL Language and Java?
C.2
What JAR Files are Required for Working with Oracle Business Rules?
D
Oracle Business Rules Troubleshooting
D.1
Public Fact Variables are not Accessible with Rule Author
D.2
Global Variables may not be Used in RL Functions
D.3
Importing JDK 1.4.2 Classes
D.4
Managing Popup Windows on Firefox
D.5
Using the String Data Type with Methods
D.6
Preserving Class Order and Hierarchies in the Data Model
D.7
Validating Generated RL from Rule Author
D.8
Using RL Reserved Words as Part of a Java Package Name
D.9
Getter and Setter Methods are not Visible
D.10
XML Facts not Asserted at Runtime
Index