How to Delete a Rule in an EPL Processor

Managing EPL Rules 7-5 Figure 7–5 EPL Rules Tab

5. Decide what rules you want to delete:

a. To delete a single rule:

– Select the rule you want to delete. – Click Delete Rule A confirmation dialog appears as Figure 7–6 shows. Figure 7–6 Delete Rule Dialog b. To delete all rules: – Click Cancel to unselect any rules that may be currently selected. – Click Delete All Rules. A confirmation dialog appears as Figure 7–6 shows. Figure 7–7 Delete All Rule Dialog 7-6 Oracle Complex Event Processing Visualizer Users Guide

6. Click OK.

7.3 Replacing a Rule in an EPL Processor

You can use the replace rule feature of Oracle CEP Visualizer to modify an existing rule. However, you should use this feature with extreme caution; this is because, internally, Oracle CEP Visualizer first deletes the rule and then adds it back again with the replaced text. The deletion of the rule causes all states to be lost before the rule is added again. For this reason, you should replace only stateless rules.

7.3.1 How to Replace a Rule in an EPL Processor

You can replace a rule in an EPL processor using the Oracle CEP Visualizer. To replace 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–8 EPL Processor Panel

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

The Rules tab appears as Figure 7–5 shows. Managing EPL Rules 7-7 Figure 7–9 EPL Rules Tab

5. Select the rule you want to replace.

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

7. Click Replace Rule.

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

8. Click OK.

7.4 Changing the dataservices Application Event Filter Rule Using EPL

The com.bea.wlevs.dataservices application includes the MonitorProcessor which in turn is associated with a default rule used to filter the events that are outputted to the diagnostic Dashboard. You can change this rule, or add new ones, if you want to customize this filtering. You can only change the dataservices application event filter rule using EPL rules. The event type used in an EPL rule is com.bea.wlev.dataservice.cep.DSMonitorEvent ; it has the following properties: ■ profile —Name of the diagnostic profile. ■ date —Date and timestamp. ■ metric —Metric number.