Configure the Oracle CEP Type dialog as shown in Select a type in the Matching Items list and click OK.

6-18 Oracle Complex Event Processing Developers Guide

6.4 Using the EPN Editor

The EPN Editor allows you to create and edit an applications EPN using actions on the editor surface. Most actions in the EPN Editor result in edits to an assembly file in that application. You can use a single EPN assembly file or multiple EPN assembly files for more information, see Section 6.2.2, Filtering . The following sections describe EPN Editor editing tasks, including: ■ Section 6.4.1, Creating Nodes ■ Section 6.4.2, Connecting Nodes ■ Section 6.4.3, Laying Out Nodes ■ Section 6.4.4, Renaming Nodes ■ Section 6.4.5, Deleting Nodes For more information, see: ■ Section 4.1, Oracle CEP Project Overview ■ Section 6.2, EPN Editor Overview ■ Section 6.1, Opening the EPN Editor ■ Section 6.3, Navigating the EPN Editor

6.4.1 Creating Nodes

When adding new nodes to an EPN using the EPN editor, a new node will appear at the location of the mouse click that was used to show the EPN Editor context menu. You can create any of the nodes that Table 6–2 lists. Table 6–2 EPN Editor Icons Node Description Adapter : a node that interfaces an event data source with the EPN or interfaces the EPN with an event data sink. For more information, see: ■ Section 6.4.1.2, How to Create an Adapter Node ■ Chapter 7, Configuring JMS Adapters ■ Chapter 8, Configuring HTTP Publish-Subscribe Server Adapters ■ Chapter 14, Configuring Custom Adapters ■ Chapter 25, Testing Applications With the Load Generator and csvgen Adapter Channel : a node that conveys events between an event data source and an event data sink. For more information, see: ■ Section 6.4.1.1, How to Create a Basic Node ■ Chapter 9, Configuring Channels Processor : a node that executes Oracle CQL or EPL rules on the event data offered to it by one or more channels. For more information, see: ■ Section 6.4.1.3, How to Create a Processor Node ■ Chapter 10, Configuring Oracle CQL Processors ■ Chapter 11, Configuring EPL Processors Oracle CEP IDE for Eclipse and the Event Processing Network 6-19 The user may not reposition the nodes on the EPN Editor. To refresh the layout of the nodes on the EPN Editor, click the Layout EPN button on the EPN Editor toolbar. For more information, see Section 6.4.3, Laying Out Nodes . When a child node is nested within a parent node, its icon appears within a box. For more information, see Section 6.2.9, Nested Stages .

6.4.1.1 How to Create a Basic Node

Basic nodes include beans, caches, channels, event beans, and tables. For information on how to create other nodes, see Section 6.4.1, Creating Nodes . To create a basic node: 1. Open the EPN Editor see Section 6.1, Opening the EPN Editor .

2. Right-click on an empty portion of the EPN Editor surface and select New from

the context menu as Figure 6–29 shows. Event Bean : a node similar to a standard Spring bean except that it can be managed by the Oracle CEP management framework and can actively use the capabilities of the Oracle CEP server container. For more information, see: ■ Section 6.4.1.1, How to Create a Basic Node ■ Chapter 15, Configuring Custom Event Beans Spring Bean : a Plain Old Java Object POJO node that consumes events. A Spring bean is managed by the Spring framework. For more information, see: ■ Section 6.4.1.1, How to Create a Basic Node ■ Chapter 16, Configuring Custom Spring Beans Cache : a node that provides a temporary storage area for events, created exclusively to improve the overall performance of your Oracle CEP application. For more information, see: ■ Section 6.4.1.1, How to Create a Basic Node ■ Chapter 12, Configuring Caching Table : a node that connects a relational database table to the EPN as an event data source. For more information, see: ■ Section 6.4.1.1, How to Create a Basic Node ■ Section 10.3, Configuring an Oracle CQL Processor Table Source Table 6–2 Cont. EPN Editor Icons Node Description 6-20 Oracle Complex Event Processing Developers Guide Figure 6–29 Creating a Basic Node 3. Select the type of node you want to create. The EPN Editor edits the source file indicated in the EPN Editor filter and the EPN Editor displays the new EPN node. For most nodes, a default ID is chosen and the new node is immediately opened for rename as Figure 6–30 shows. Figure 6–30 New Basic Node To rename the node, see Section 6.4.4, Renaming Nodes . To reposition the node and update the EPN Editor layout, see Section 6.4.3, Laying Out Nodes . 4. Optionally, configure additional node options. See: ■ Chapter 9, Configuring Channels ■ Section 10.3, Configuring an Oracle CQL Processor Table Source ■ Chapter 12, Configuring Caching ■ Chapter 14, Configuring Custom Adapters ■ Chapter 15, Configuring Custom Event Beans ■ Chapter 16, Configuring Custom Spring Beans ■ Chapter 25, Testing Applications With the Load Generator and csvgen Adapter