If you are creating a new rule, Click Inject Rule.

Managing Oracle CQL Rules 6-65

3. Select a source from the Variables pull-down menu.

4. Select a function category from the Functions pull-down menu.

5. Double-click a function to select it and add it to the Expression Builder. 6. Double-click a property to select it and make it the argument of the function. 7. Use your mouse to position the insertion bar after the closing bracket of the function. 8. Double click an operand to select it and add it to the Expression Builder. 9. Double-click another property or type in a literal value in the Expression Builder.

10. To undo an operation, click the Undo button.

11. To redo an operation, click the Redo button.

12. To clear the Expression Builder, click the Erase button.

13. Click Save to save the expression and return to the CQL construct editor dialog.

6.1.10 How to Create an Oracle CQL Template for the Query Wizard

Oracle CEP Visualizer provides a sophisticated Query Wizard to simplify Oracle CQL view and query construction. You can drag and drop a complete Oracle CQL view or query template and customize it to suit your needs. This procedure describes how to create your own templates and add them to the Query Wizard Templates palette. An Oracle CQL template is based on the wlevs_queryconstructor_config.xsd from Appendix A, Oracle CQL Query Wizard Template Schema Reference . However, a user-defined template may contain only the following: ■ select-block ■ from-block ■ where-block ■ Operator element and attributes ID and type ■ Operator element inputs child element For more information on using templates to create an Oracle CQL rule, see Section 6.1.1, How to Create a Rule in an Oracle CQL Processor Using the Query Wizard . To create an Oracle CQL template for the Query Wizard: 1. Using your favorite editor, create an XML file and add the header shown in Example 6–1 . Functions Select a function category from the Functions pull-down menu to list the functions it provides in the Functions list. Select a function to see its syntax in the Function Description field. Double-click a function to select it and add it to the Expression Builder at the current insertion point. Operands Double-click an operand to select it and add it to the Expression Builder at the current insertion point. Function Description Read-only field that shows the syntax for the currently selected function. Table 6–23 Cont. Query Wizard Expression Builder Attributes Attribute Description