ILOG Rules for .NET User Guides > Rule Studio > Writing Rules

Business rules let you express your policy statements using predefined business vocabulary that can be interpreted by a computer. The vocabulary is the set of terms and phrases attached to the elements of the Business Object Model (BOM), ruleset parameters, local variables, and constants. Whether a vocabulary element is a business term, a phrase, or a constant depends on the nature of its corresponding business element.

For example, the policy "change customers in the Gold category to the Platinum category when they spend $1,500 or more in a single transaction" can be expressed as a business rule in the following way:

 if
     all of the following conditions are true:
        - the customer category is Gold
        - the value of the shopping cart is more than $1,500
 then
     change the customer category to Platinum;

The customer in this rule is a business term that corresponds to a class or nested class in the BOM.

Vocabulary elements appear in the completion menu of the Intellirule Editor. You can access a completion menu in the editor by pressing CTRL+SPACE, or you can select the option Display completion menu in the editor properties and use SPACE (in this mode SPACE inserts a space character and opens the completion menu to help you finish your sentence or phrase).

The Intellirule Editor in Rule Studio also allows you to write your business rules freely, just like you would write a line of text in any text editor. The Intellirule Editor then breaks the text that you type into the building blocks of the supporting vocabulary. If the editor cannot recognize a block that you have typed, you will be prompted to check the vocabulary of your business domain. Any errors in the text that you type will appear in the Error List.

Note
Free text and the vocabulary completion menus work together without conflict or disagreement.

To learn how to write and edit rules read the following section:

And then discover the different parts of a business rule:

In This Section

Using the Intellirule Editor
Learn how to create business rules with the Intellirule Editor.
Definitions
Discover how to use variables in a business rule.
Conditions
Find out how to write the condition part of a business rule.
Actions
Find out how to write the action part of a business rule.
Using the Properties of Business Rules
Learn about how you can use the properties of a business rule throughout the rule's life cycle.
Working with Decision Tables
Discover how to create and edit decision tables.
Converting Business Rules to Decision Tables
Find out how you can convert business rules to decision tables.

Related Sections

Rule Editing Reference
Provides a technical reference for the constructs used to build business rules.
Defining Business Object Models
Describes how to define and verbalize a business object model.