Apama Documentation : Using Apama with Software AG Designer : Working with Projects : Adding resources to Apama projects : Creating new monitor files for EPL applications
Creating new monitor files for EPL applications
EPL files define monitors and/or event types or they define Apama queries.
Note:  
EPL monitors and EPL queries (also referred to as Apama queries) provide two different approaches to implementing an Apama application. This topic provides instructions for adding files that will define monitors and/or events. To add a file that will define a query, see Adding query files to projects. See also: Architectural comparison of queries and monitors.
Monitor definitions and event type definitions are in .mon files.
To add a new .mon file to an Apama project
1. If you are in the Apama Workbench perspective, click the Show All Folders icon if necessary to display the enhanced view that shows all the project's resources.
2. In the Project Explorer view or the Workbench Project view, right-click the monitors folder of the project where you want to add the EPL file and select New > MonitorScript File. In the Workbench Project view you can also select the monitors folder and click New MonitorScript File.
3. In the New MonitorScript File wizard, 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 folder of the currently selected project, but you can select another folder using the Browse button.
b. In the File name field, specify the name of the new file. Specifying the .mon extension is optional as Software AG Designer will add the .mon file extension. Software AG Designer 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 name of the new file now appears in the Project Explorer view or the Workbench Project view under the project that contains it and the EPL file opens in the EPL editor.
5. In the EPL editor, add the desired EPL code and save the file.
For more information about EPL, see Getting Started with Apama EPL. For more information on the editing features available when writing EPL code, see Editing Apama files.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback