CONTENTS

Writing Rules

Getting Started
Overview: Ways of Expressing a Business Policy
Tutorial: Creating Business Rules
Gray bulletBefore You Start
Gray bulletTutorial Scenario
Gray bulletViewing the Completed Tutorial
Gray bulletStep 1: Create Categories
Gray bulletStep 2: Create a Business Rule Template
Gray bulletStep 3: Create Business Rules from the Template
Gray bulletStep 4: Create a Business Rule with an Else Part
Gray bulletStep 5: Test Business Rule Execution
Gray bulletStep 6: Fix Business Rule Execution
Tutorial: Editing Decision Tables
Gray bulletBefore You Start
Gray bulletTutorial Scenario
Gray bulletViewing the Completed Tutorial
Gray bulletStep 1: Create the MinimumAge Decision Table
Gray bulletStep 2: Generate Lines in the Table
Gray bulletStep 3: Correct an Overlapping Data Error
Gray bulletStep 4: Import Data from Excel into a Decision Table
Gray bulletStep 5: Change the Formatting
Gray bulletStep 6: Execute the Decision Table
Concepts
Automatic Variables
Anatomy of a Rule Artifact
Ruleset Variables
Properties and Tags
Business Rules
Gray bulletStructure of a Business Rule
Gray bulletRule Definitions
Gray bulletWhat is a Variable
Gray bulletVariables and Rule Eligibility
Gray bulletTypes of Variable Definition
Gray bulletRule Conditions
Gray bulletWhat are Conditions
Gray bulletTypes of Conditions
Gray bulletPrecedence of Logical Operators Between Conditions
Gray bulletGroups of Condition Statements
Gray bulletRule Actions
Gray bulletWhat are Rule Actions
Gray bulletAction Phrases
Gray bulletGroups of Action Statements
Gray bulletElse Part
Gray bulletBusiness Rule Editing Errors and Warnings
Decision Tables
Gray bulletOverview of Decision Tables
Gray bulletColumns
Gray bulletRows and Cells
Gray bulletPreconditions
Gray bulletDecision Table Editing Errors and Warnings
Gray bulletDecision Table to IRL Mapping
Decision Trees
Gray bulletWhat is a Decision Tree
Gray bulletDecision Tree Editing Errors and Warnings
Technical Rules
Gray bulletWhat is a Technical Rule
Gray bulletVariables in Technical Rules
Gray bulletTechnical Rule Conditions
Gray bulletTechnical Rule Actions
Gray bulletAction Part of a Technical Rule
Gray bulletIf/Else Control
Gray bulletLoops
Gray bulletBranching Statements
Gray bulletException Handling Statements
Gray bulletElse Clause with an Evaluate Statement
Business Rule Templates
Tasks
Defining Ruleset Variables
Creating Business Rules
Gray bulletCreating a Business Rule
Gray bulletBuilding Rules Using the Intellirule Editor
Gray bulletSwitching to the Intellirule Editor
Gray bulletCreating Rule Parts
Gray bulletInserting a Term or a Phrase
Gray bulletAccessing the Name of the Currently Executed Rule in an Action Part
Gray bulletDefining a Variable
Gray bulletNegating a Condition Statement
Gray bulletNavigating from a Business Rule to a Business Element
Gray bulletAvoiding Ambiguity in Rules
Gray bulletBuilding Rules Using the Business Rule Guided Editor
Gray bulletSwitching to the Business Rule Guided Editor
Gray bulletCreating Rule Parts
Gray bulletAdding or Removing Rule Statements
Gray bulletDefining a Variable
Gray bulletChoosing Whether to Enter Values or Select Items
Gray bulletInserting an Arithmetic Expression
Gray bulletAdding a Statement to a Group of Statements
Gray bulletControlling How Condition Statements are Combined
Gray bulletChanging the Grouping Order of Condition Statements
Gray bulletNegating a Condition Statement
Gray bulletAdding Restrictions to Definition or Condition Statements
Gray bulletSpecifying the Origin of Objects Used in a Definition Statement
Gray bulletSpecifying the Source of Objects Used in a Definition or Condition Statement
Gray bulletSelecting Your Business Rule Editing Mode
Gray bulletSetting Up a Business Rule Template
Working With Decision Tables
Gray bulletCreating a Decision Table
Gray bulletDefining Columns
Gray bulletAdding and Populating Rows
Gray bulletSpecifying Values and Operators
Gray bulletSpecifying Values
Gray bulletDefining Condition Column Statements
Gray bulletDisabling Action Cells
Gray bulletPopulating a Decision Table from an Excel Spreadsheet
Gray bulletDefining Preconditions
Gray bulletFormatting a Decision Table
Gray bulletDefining Checking Options
Gray bulletValue Test Conditions
Gray bulletUsing Decision Table Locking Facilities
Gray bulletViewing Rules
Gray bulletViewing the Decision Table as a Spreadsheet
Gray bulletDocumenting a Decision Table
Working With Decision Trees
Gray bulletCreating a Decision Tree
Gray bulletLabelling and Defining Condition Nodes
Gray bulletLabelling and Defining Branches
Gray bulletLabelling and Defining Actions
Gray bulletDefining Preconditions
Gray bulletDefining Checking Options
Gray bulletViewing Rules
Correcting Errors Using Quick Fix
Refactoring Rule Artifacts
Defining a Category Filter on a Business Rule Artifact
Working with Technical Rules
Gray bulletCreating a Technical Rule
Gray bulletUsing the Technical Rule Editor
Gray bulletUsing Content Assist in a Technical Rule
Gray bulletIdentifying Errors in the Technical Rule Editor
Gray bulletOrganizing Import Statements
Gray bulletOpening Declarations from the Technical Rule Editor
Gray bulletDefining IRL Editing Settings
Gray bulletWriting Technical Rules
Gray bulletStructure of a Technical Rule in IRL
Gray bulletDefining a Variable
Gray bulletWriting Conditions in IRL
Gray bulletAdding Tests to a Condition
Gray bulletExtending Objects Available for a Condition
Gray bulletWriting Actions in IRL
Gray bulletWriting a Rule with an Else Action Clause
Gray bulletNotifying the Rule Engine of Object Changes
Using a Custom Rule Type