How to Create an Oracle CEP Project

Oracle CEP IDE for Eclipse Projects 4-5 Figure 4–4 New Oracle CEP Application Project Wizard: Oracle CEP Application Content

7. Optionally, configure the Oracle CEP Application Content dialog as shown in

Table 4–3 .

8. Click Next.

The Template dialog appears as shown in Figure 4–5 . Table 4–3 Oracle CEP Application Content Dialog Attribute Description Bundle ID The unique ID that distinguishes this application’s OSGi bundle from those deployed to the target runtime. Bundle Version The version of this instance of this OSGi bundle. Bundle Name The name of this application’s OSGi bundle. Bundle Provider The name of the provider for this application’s OSGi bundle optional. 4-6 Oracle Complex Event Processing Developers Guide Figure 4–5 New Oracle CEP Application Project Wizard: Template Dialog

9. Optionally, select an Oracle CEP application template to pre-populate your project

with the content that the template specifies.

10. Click Finish.

The Oracle CEP IDE for Eclipse creates the Oracle CEP project.

11. Optionally, create additional EPN assembly files and component configuration

files. By default, Oracle CEP IDE for Eclipse creates one EPN assembly file and one component configuration file for your project. Optionally, you may choose to define and configure Oracle CEP objects in multiple EPN assembly and component configuration files to improve management, concurrent development, and re-use. For more information, see: ■ Section 4.3, Creating EPN Assembly Files ■ Section 4.4, Creating Component Configuration Files

4.3 Creating EPN Assembly Files

You use the Event Processing Network EPN assembly file to declare the components that make up your Oracle CEP application and how they are connected to each other. You also use the file to register event types of your application, as well as the Java classes that implement the adapter and POJO components of your application. For an example of an EPN assembly file, see the Foreign Exchange FX Example in the Oracle Complex Event Processing Getting Started. For additional information about Spring and OSGi, see Appendix A, Additional Information about Spring and OSGi. Oracle CEP IDE for Eclipse Projects 4-7

4.3.1 How to Create a New EPN Assembly File Using Oracle CEP IDE for Eclipse

The most efficient and least error-prone way to create and edit the EPN file is using the New File Wizard in the Oracle CEP IDE for Eclipse. For more information, see: ■ Section 6.2, EPN Editor Overview ■ Section 4.7, Managing Libraries and Other Non-Class Files in Oracle CEP Projects To create a new EPN assembly file using Oracle CEP IDE for Eclipse: 1. Create an Oracle CEP project. See Section 4.2, Creating Oracle CEP Projects . By default, Oracle CEP IDE for Eclipse creates one EPN assembly file for your project. Optionally, you may choose to define Oracle CEP objects in multiple EPN assembly files to improve management, concurrent development, and re-use. 2. To optionally create additional EPN assembly files:

a. Select File New Other.

The New dialog appears as Figure 4–6 shows. Figure 4–6 New Dialog

b. Expand Oracle CEP and select Oracle CEP Assembly File.

c. Click Next.

The New CEP Assembly File dialog appears as Figure 4–7 shows. 4-8 Oracle Complex Event Processing Developers Guide Figure 4–7 New CEP Assembly File Dialog

d. Configure the New CEP Assembly File dialog as shown in

Table 4–4 .

e. Click Finish.

3. Open the EPN editor.

See Section 6.1, Opening the EPN Editor .

4. If you created multiple EPN assembly files, you can select the EPN assembly file

you want to work on using the EPN Editor Filter pull-down menu. This lets you focus on just the subset of the EPN that the selected EPN assembly file represents. To see the union of all components in all EPN assembly files, select Full EPN from the EPN Editor Filter pull-down menu. For more information, see Section 6.2.2, Filtering .

5. Create and connect nodes on the EPN.

See Section 6.4, Using the EPN Editor .

4.4 Creating Component Configuration Files

You use a component configuration file to configure the components that make up your Oracle CEP application. Table 4–4 New CEP Assembly File Dialog Attribute Description Enter or select the parent folder Enter the fully qualified path to the folder in which Oracle CEP IDE for Eclipse will create the EPN assembly file or use the file system navigation controls to select the folder. File name Enter the name of the new EPN assembly file.