Edit the Pattern tab as

Managing Oracle CQL Rules 6-35 Figure 6–44 Query Wizard Pattern Editor Dialog: Define Tab

4. Edit the Define tab as

Table 6–5 describes. For more information, see DEFINE Clause in the Oracle Complex Event Processing CQL Language Reference. Table 6–6 Query Wizard Pattern Editor Attributes: Define Tab Attribute Description Object Name Enter an object name as you specified in the Pattern Expression attribute of the Pattern tab see Table 6–4 . For example, if the pattern expression is: A B C Then create a definition for each of A, B, and C. AS Define an expression by clicking the Expression Builder button. For example: A AS A.temp = 25 B AS B.temp = 25 and B.element_time - A.element_time INTERVAL 0 00:00:05:00 DAY TO SECOND C AS C.element_time - A.element_time = INTERVAL 0 00:00:05:00 DAY TO SECOND For more information, see Section 6.1.9.17, Configuring an Expression Using the Expression Builder . Object List A list of the definitions you specify. To add a definition to the Object List, click the Add button. To remove a definition from the Object List, click the Delete button. Generated CQL Statement Read-only Oracle CQL fragment associated with this CQL Construct. 6-36 Oracle Complex Event Processing Visualizer Users Guide

5. Click the Subset tab.

The Subset tab appears as Figure 6–45 shows. Figure 6–45 Query Wizard Pattern Editor Dialog: Subset Tab

6. Edit the Subset tab as

Table 6–7 describes. For more information, see SUBSET Clause in the Oracle Complex Event Processing CQL Language Reference.

7. Click the Measure tab.

Table 6–7 Query Wizard Pattern Editor Attributes: Subset Tab Attribute Description Subset name Enter a name for the subset. AS Enter a list of the object names as you specified in the Pattern Expression attribute of the Pattern tab see Table 6–4 . For example, given the following pattern: A W+ X+ Y+ Z+ You could define subsets such as: S1 AS Z S2 AS A S3 AS A,W,Y Subset List A list of the subsets you specify. To add a subset to the Subset List, click the Add button. To remove a subset from the Subset List, click the Delete button. Generated CQL Statement Read-only Oracle CQL fragment associated with this CQL Construct.