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.