Go to main content
1/11
Contents
List of Tables
Title and Copyright Information
Preface
Audience
Documentation Accessibility
Related Documents
Conventions
Conventions in Text
RL Language Backus-Naur Form Grammar Rules
What's New in This Guide
New and Changed Features for 12c (12.1.3)
1
Rules Programming Concepts
Differences Between Using this Component in the Cloud and On-Premises Environments
Starting the Oracle Business Rules RL Language Command-Line
Introducing Rules and Rulesets
Rule Conditions
Rule Actions
Introducing Facts and RL Language Classes
What Are Facts?
Adding Facts to Working Memory with Assert
Using RL Language Classes as Facts
Using Java Classes as Facts
Understanding and Controlling Rule Firing
Rule Activation and the Agenda
Watching Facts, Rules, and Rule Activations
Watching and Showing Facts in Working Memory
Watching Activations and Rule Firing
Ordering Rule Firing
Ordering Rule Firing
Using Effective Dates
Integrating RL Language Programs with Java Programs
Using Java Beans Asserted as Facts
Sample RL Language Program
Working with Java Beans as Facts
Using RuleSession Objects in Java Applications
Building a Coin Counter Rules Program
2
Rules Engine Algorithms
Overview
Differences between Rete and NRE Algorithm
Configuring the Non-Rete Algorithm
3
Rule Language Reference
Ruleset
Types
Identifiers
Literals
Definitions
Variable Definitions
Global Variables
Rule Definitions
Class Definitions
xpath Support
Function Definitions
Fact Class Declarations
Import Statement
Include Statement
Using Expressions
Boolean Expressions
Numeric Expressions
String Expressions
Array Expressions
Fact Set Expressions
Comparable Expression
Object Expressions
Primary Expressions
new
Actions and Action Blocks
If Else Action Block
While Action Block
For Action Block
Try Catch Finally Action Block
Synchronized Action Block
Modify Action
Return Action
Throw Action
Assign Action
Increment or Decrement Expressions
Primary Actions
Rulegroup
Built-in Functions
assert
assertTree
assertXPath
clearRule
clearRulesetStack
clearWatchRules, clearWatchActivations, clearWatchFacts, clearWatchFocus, clearWatchCompilations, clearWatchAll
contains
getCurrentDate
getDecisionTrace
getDecisionTraceLevel
getDecisionTraceLimit
getEffectiveDate
getFactByType
getFactsByType
getRulesetStack
getRuleSession
getStrategy
halt
id
isErrorInRuleConditionSuppressed
isRulesetsOnStackOnce
object
println
popRuleset
pushRuleset
retract
reset
run
runUntilHalt
setCurrentDate
setDecisionTraceLevel
setDecisionTraceLimit
setEffectiveDate
setErrorInRuleConditionSuppressed
setRulesetStack
setRulesetsOnStack
setStrategy
showActivations
showFacts
step
watchRules, watchActivations, watchFacts, watchFocus, watchCompilations
4
Using the Command-line Interface
Starting and Using the Command-Line Interface
Using Command-Line Input Processing
RL Command-Line Options
RL Command-Line Built-in Commands
Clear Command
Exit Command
5
Using a RuleSession
RuleSession Constructor Properties
RuleSession Methods
RL to Java Type Conversion
Error Handling
RL Class Reflection
Obtaining Results from a Rule Enabled Program
Overview of Results Examples
Using External Resources to Obtain Results
Debugging an RL Stacktrace
Using RuleSession Pooling
How to Create a RuleSession Pool
How to Use a RuleSession Pool
Using RuleSession Options
Using the CFG_LOGGING System Property
Using the CFG_DECISION_TRACE_LEVEL Option
Using the CFG_DECISION_TRACE_LIMIT Option
Using Decision Tracing
Introduction to Rule Engine Level Decision Tracing
Using Rule Engine Level Decision Tracing
Setting Decision Trace Level
Decision Trace Samples for Production and Development Level Tracing
Sample Development Level DecisonTrace
A
Summary of Java and RL Differences
RL Differences from Java
Scripting on this page enhances content navigation, but does not change the content in any way.