Edit the Define tab as

Managing Oracle CQL Rules 6-37 The Measure tab appears as Figure 6–46 shows. Figure 6–46 Query Wizard Pattern Editor Dialog: Measure Tab

8. Edit the Measure tab as

Table 6–8 describes. Table 6–8 Query Wizard Pattern Editor Attributes: Measure 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 or Subset name attribute of the Subset tab see Figure 6–45 . For example, if the pattern expression is: A B C Then you could create a measure for any of A, B, and C. If you define subsets: S1 AS Z S2 AS A S3 AS A,W,Y Then you could create a measure for any of S1, S2, and S3. AS Define an expression by clicking the Expression Builder button. For example: sumDecrArm as sumS3.c2 For more information, see Section 6.1.9.17, Configuring an Expression Using the Expression Builder . Measure List A list of the measures you specify. To add a measure to the Properties list, click the Add button. To remove a measure from the Properties list, click the Delete button. 6-38 Oracle Complex Event Processing Visualizer Users Guide For more information, see MEASURES Clause in the Oracle Complex Event Processing CQL Language Reference.

9. Click the Validate button to ensure that your changes are syntactically correct.

Correct any errors before proceeding.

10. Click Save.

The Pattern icon displays a green check mark to indicate that it is configured.

6.1.9.5 Configuring a Select CQL Construct

The Select Oracle CQL construct represents the Oracle CQL SELECT clause. For information on representing the WHERE clause, see Section 6.1.9.9, Configuring a Filter CQL Construct . The Select Oracle CQL construct editor provides a tab for each of the following sub-clauses: ■ select_clause : Use this clause to specify the stream elements to select from the stream or view you specify. See Figure 6–48, Query Wizard Select Editor Dialog: Project Tab . ■ opt_group_by_clause : Use this clause to specify optional grouping conditions your query applies to its results. See Figure 6–49, Query Wizard Select Editor Dialog: Group Tab . ■ opt_having_clause :Use this clause to restrict the groups of returned stream elements to those groups for which the specified condition is TRUE. If you omit this clause, then Oracle CEP returns summary results for all groups. See Figure 6–50, Query Wizard Select Editor Dialog: Condition Tab . ■ order_by_clause : Use this clause to specify optional ordering conditions your query applies to its results. See Figure 6–51, Query Wizard Select Editor Dialog: Order Tab . For more information, see: ■ Select, From, Where Block in the Oracle Complex Event Processing CQL Language Reference ■ select_clause in the Oracle Complex Event Processing CQL Language Reference ■ opt_group_by_clause in the Oracle Complex Event Processing CQL Language Reference ■ opt_having_clause in the Oracle Complex Event Processing CQL Language Reference ■ order_by_clause in the Oracle Complex Event Processing CQL Language Reference ■ Oracle CQL Statements in the Oracle Complex Event Processing CQL Language Reference To configure a Select CQL construct: 1. Double click the Select icon as Figure 6–47 shows. Generated CQL Statement Read-only Oracle CQL fragment associated with this CQL Construct. Table 6–8 Cont. Query Wizard Pattern Editor Attributes: Measure Tab Attribute Description