Fit Content Zoom Managing the Query Plan Diagram

7 Managing EPL Rules 7-1 7 Managing EPL Rules This section contains the typical application tasks you can perform with Oracle CEP Visualizer to manage EPL rules, including: ■ Section 7.1, Creating a Rule in an EPL Processor ■ Section 7.2, Deleting a Rule From an EPL Processor ■ Section 7.3, Replacing a Rule in an EPL Processor ■ Section 7.4, Changing the dataservices Application Event Filter Rule Using EPL For more information, see: ■ Section 3.3, Rules Management ■ Oracle Complex Event Processing EPL Language Reference.

7.1 Creating a Rule in an EPL Processor

You can create a new rule in an existing Oracle CEP application that uses one or more EPL processors.

7.1.1 How to Create a Rule in an EPL Processor

You can create a rule in an EPL processor using the Oracle CEP Visualizer. Note: Oracle CQL replaces Event Processing Language EPL in Oracle CEP 11g Release 1 11.1.1.4.0. Oracle CEP supports EPL for backwards compatibility. For more information, see Chapter 6, Managing Oracle CQL Rules . Note: Any changes to rules and Oracle high availability adapters are propagated to the other servers in the same group. That is, all rule and and Oracle high availability adapter configurations is automatically synchronized. Other configuration changes are not synchronized. For example, if you change recordplayback or JMS adapter configuration on one server in a multi-server domain, then these changes are not synchronized with the other servers in the same group. For more information, see Chapter 18, Managing Multi-Server Domains 7-2 Oracle Complex Event Processing Visualizer Users Guide To create a rule in an EPL 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. Expand the appname Stages node to see a list of the EPN stages in the domain

tree, where appname is the name of the application. 3. Click the EPL processor in which you want to create an EPL rule. The Processor panel is displayed as Figure 7–1 shows. Figure 7–1 EPL Processor Panel

4. In the right pane, click the Rules tab.

The Rules tab appears as Figure 7–2 shows. Managing EPL Rules 7-3 Figure 7–2 EPL Rules Tab

5. Click in the Rule ID field and enter the name of the rule you want to create.

6. Click in the Rule field and enter the EPL query string.

7. Click Create Rule.

A confirmation dialog appears as Figure 7–3 shows. Figure 7–3 Create Rule Dialog

8. Click OK.

7.2 Deleting a Rule From an EPL Processor

You can delete an existing rule in an existing Oracle CEP application that uses one or more EPL processors.

7.2.1 How to Delete a Rule in an EPL Processor

You can delete a rule in an EPL processor using the Oracle CEP Visualizer. To delete a rule in an EPL 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. Expand the appname Stages node to see a list of the EPN stages in the domain

tree, where appname is the name of the application.