The Statement Rule Editor

You use the statement rule editor to create statement rules.

Features of the Statement Rule Editor

The statement rule editor provides features that assist you in efficiently creating statement rules.

The statement rule editor is part of the Rules tab of the Edit Configurator Model page.

The Rules tab also provides

  • The Rules pane, which gives you access to the rules you define, displayed in a tree control. The status of rules that are modified or have errors is indicated by icons.

    You can create rule folders in the tree, to organize your rules.

    The Actions menu contains actions that let you reorder Default and Search Decision rules.

  • The Structure pane, which enables you to insert syntactically correct references to a node directly into the rule text, by selecting the node and clicking the Insert into Rule Text button.

The following table summarizes the features and benefits of the rule editor.

Feature

Benefit

Enabled check box

You can disable a rule while you work on its definition, or if you don't want its behavior affecting the model.

Status

The status values are:

  • Modified: The rule text was edited, or some attribute of the rule was changed since the last time it was compiled.

  • Error: An error prevented the rule from being compiled and executed, or the rule has a syntax error.

  • Valid: The rule is valid, and can be compiled and tested.

End Date

The read-only End Date field displays the date when the rule becomes invalid because one of the participants in the rule was end-dated.

Definition region

This region of the editor page groups the controls for modifying the rule.

Rule Class selection

Enables you to change the rule class that you selected when creating the rule.

If the class is a Default or Search Decision, a Reorder button is enabled so that you can change the sequence in which your defaults or search decisions are executed.

Validate button

Checks the validity of the syntax of your rule text.

Text pane

You enter the CDL rule text of your statement rule here. Basic text editing is provided. The toolbar above the text pane provides insertion menus and text buttons that enable you to enter valid CDL code without using the keyboard.

Insertion menus

A set of menus enables you to insert valid CDL syntactical elements directly into the rule text. The menus are:

  • Keywords: Major CDL keywords around which statements are built.

  • Logic Operators: The operators for defining logic rules.

  • Functions: a set of cascading menus for entering functions that are grouped by categories:

    • Logic

    • Arithmetic

    • Trigonometric

    • Set

    • String

The menus are tear-off style, so you can tear an often-used menu off the toolbar and leave it positioned over the editor page for convenient access while you work.

Text buttons

A set of buttons enables you to insert valid CDL syntactical elements directly into the rule text by clicking. The groups of buttons provide:

  • Characters for delimiting statements

  • Comparison operators

  • Boolean operators

  • Mathematical operators