Creating a Rule

A rule is a set of instructions, generally based on conditional statements, where the relationship between parameters is controlled. You can write it either by directly entering the appropriate syntax in the editor box or by selecting items from the editor dictionary list.


Before you begin: You must have created parameters.
Create the rule. To do so, do the following:
  1. Enter a rule name.
  2. Optional: If need be, replace the default comments.
  3. Optional: If you want to add the rule to be created to a specific relation set, specify a destination.
  4. Click OK.
  5. In the Rule Editor, enter your rule script.
Important:
  • You may also create a rule by clicking the relation specified in the tree and clicking Rule .
  • The editor supports the autocompletion allowing you to access available variables, knowledge types, or methods. For example, when you declare a new variable, the list of available known Knowledge types is automatically displayed.
  • You can use the following keyboard shortcuts in the editor:
    • Ctrl+Z: Undo. Lets you delete the last word you entered.
    • Ctrl+Y: Redo.
    • Ctrl+F: Search in text.
    • Ctrl+A: Select all.