Primitive Rule Condition Editor

A rule is a SQL expression defined using the attributes of an event structure. Rules that share a common event structure belong to the same rule class. A rule has a description, action preferences, and a condition. Action preferences describe the event values associated with each rule for action execution. A rule condition is a SQL expression of the rule using the attributes defined in the event structure.

Through a series of right-mouse clicks and text entry, this interface can be used to create an XML Tree representation of a rule condition. The condition node is always at the root of the tree. To see a menu of available commands for any node, first click that node with the left mouse button to bring it into focus, then click that node with the right mouse button.

If you select Add Logical Operator AND an AND node is added to the XML tree structure below and within the Condition node.

If you select Logical Operator OR, an OR node is added to the XML tree structure below and within the Condition node.

If you select Predicate, a predicate node named "Predicate" is added to the XML tree structure. Next, select this Predicate node from the XML tree. Right click on the Predicate node to show the acceptable attribute choices the menu, as well as the acceptable operator choices in an Operators sub-menu. You can construct a predicate using values from this sub-menu as well as text entered directly in the editing area. When you are finished editing the predicate, move the focus away from the Predicate node by left-clicking on a different node. Repeat this process for each predicate node you want to add and then edit edit.

If you click a logical OR operator node to edit, the menu will display the Predicate option and the Add Logical Operator AND option. If you select Predicate, a predicate node named "Predicate" is added to the XML tree structure below and within the OR operator you originally selected. You can then select this "Predicate" node and edit its contents. If you select Add Logical Operator AND, an AND operator is added to the XML tree structure below and within the logical OR operator that you originally selected.

If you click a logical AND operator node to edit, the menu will display the Predicate option and the Add Logical Operator OR option. If you select Predicate, a predicate node named "Predicate" is added to the XML tree structure below and within the AND operator you originally selected. You can then select this "Predicate" node and edit its contents. If you select Add Logical Operator OR, and OR operator is added to the XML tree structure below and within the logical AND operator that you originally selected.

To remove any node from the XML tree, click the node to be removed to select it, then right click and select Remove current node and all of its children.

Press OK to validate the XML and enter it into the Rule Condition box. Press Cancel to ignore any changes made during the editing session for this tree.


 

Related Topics

Rule Creation Wizard

Rule Creation Wizard - Rule Designer

Composite Rule Condition Editor

Event Structure Wizard

Rule Class Wizard

Copyright © 2005, Oracle. All rights reserved.