How to Create a Parameterized Rule in an Oracle CQL Processor

Managing Oracle CQL Rules 6-13

4. Click the CQL Rules tab.

The CQL Rules tab appears as Figure 6–32 shows. Figure 6–14 CQL Rules Tab

5. Click the Query radio button.

6. Click Add Query.

7. Enter a query name in the Query Id field.

8. Enter the Oracle CQL query in the Query field.

Use placeholder characters :n to specify parameterized values.

9. Configure the Enable option:

a. To enable the query as soon as it is saved, click true.

b. To keep the query disabled after it is saved, click false.

10. Click Save.

A confirmation dialog appears as Figure 6–15 shows. Figure 6–15 Query Save Dialog

11. Click OK.

6-14 Oracle Complex Event Processing Visualizer Users Guide Your query is saved to the local disk of the computer you are currently using. To reload your query, you must access the Oracle CEP Visualizer from the same local host. 12. Edit the parameterized query to add parameter values as Section 6.1.4, How to Edit a Parameterized Query in an Oracle CQL Processor describes. 13. After you create a query, update the selector for the outbound channel the channel down-stream from the Oracle CQL processor you created your query on. This will only work with pre-existing event types. For more information, see Section 4.2.1.2, Channel Properties: Outbound Channel .

6.1.4 How to Edit a Parameterized Query in an Oracle CQL Processor

You can edit the parameter values of an existing Oracle CQL parameterized query. You can add a new list of parameter values, modify an existing list of paramter values, or delete an existing list of paramter values. For more information, see: ■ Section 6.1.3, How to Create a Parameterized Rule in an Oracle CQL Processor ■ Paramterized Queries in the Oracle Complex Event Processing CQL Language Reference To edit a parameterized query in an Oracle CQL processor: 1. In the left pane, navigate to and expand the Applications node of the Oracle CEP instance to which the application is deployed.

2. Select appname, where appname is the name of the application you want to use.

3. Select the Oracle CQL processor you wish to use:

a. To use the EPN diagram:

– Click the Event Processing Network tab. – Double-click the Oracle CQL processor you wish to use.

b. To use the domain tree:

– Expand the appname Stages node, where appname is the name of the application you want to use. – Click the Oracle CQL processor you wish to use. – In the right pane, click the General tab The Processor panel is displayed as Figure 6–1 shows. Note: You cannot add or remove placeholder characters :n nor can you edit the Oracle CQL query using the Query Wizard. Managing Oracle CQL Rules 6-15 Figure 6–16 Oracle CQL Processor Panel

4. Click the CQL Rules tab.

The CQL Rules tab appears as Figure 6–32 shows. Figure 6–17 CQL Rules Tab: Parameterized Query