Developing Apama Applications > Using Apama Studio > Working with Projects > Adding resources to Apama projects > Creating new event definition files for EPL applications > Creating event definitions by adding EPL code
Creating event definitions by adding EPL code
To create an event definition by adding EPL code:
1. In the Project Explorer view, right-click the project’s eventdefinitions folder and select New > Event Definition from the pop-up menu. The New Event Definition dialog is displayed.
2. In the New Event Definition dialog, in the Generate Event Definition using field, select EPL Editor and click Next. The Choose output location for Event Definition dialog is displayed.
3. In the Choose output location for Event Definition dialog, enter information in the following fields:
a. The Containing Folder field is the folder where the file will be saved; by default this is the currently selected folder of the current project, but you can select another folder or project using the Browse button.
b. In the File name field, specify the name of the new file. Specifying the .mon extension is optional as Apama Studio will add the .mon file extension. Apama Studio will not let you specify anything except .mon as a file extension.
c. The Package field is optional; information in this field is an EPL package name.
4. Click Finish. The new event definition file is added to the specified folder in the project and the EPL file opens in the EPL editor.
5. In the EPL editor, add the desired EPL code and save the file.
Note, you can also create these types of event definitions by using the New > MonitorScript menu item; for details, see Creating new monitor files for EPL applications.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.