The Rule Editor panel allows you to edit rules and templates. The Rule Editor automatically opens when you create a new rule or rule template, or select a rule or template in the Project Explorer.
The Rule Editor provides three views for rule editing:
-
Syntactic View--used to edit rules in various business rule languages, for example, BAL, TRL, or your own custom business rule language.
-
IRL View--used to edit rules written in IRL. It can also be used to translate rules written in a syntactic language into IRL. If a rule in a syntactic language is edited in IRL, it can no longer be edited in the syntactic language.
-
Code View--a read-only view that displays the execution definition of a business rule. This view displays the body of the rule in IRL with a header that defines the Universal Unique Identifier (UUID) of the rule and its properties. This corresponds to the code generated when you export a ruleset file from the Rule Builder.
Each of these views corresponds to different definitions of the rules. The definition of a rule is the language in which the rule is written. When you change the definition of a rule, you translate the rule from one language to another.
The examples given in:
show the same rule Gold to platinum
in the different views. The rule contains three conditions and one action:
-
The first condition is true if there is a customer object.
-
The second condition is true if there is a shopping cart object.
-
The third condition is true if the customer category is gold and the purchase value of the shopping cart is greater than $1500.
-
The action modifies the working memory so that the category of the customer is changed to platinum.
|