Apama 10.3.1 | 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.
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.
* To add a new monitor file to an Apama project
1. In the Project Explorer view or the Workbench Project View, right-click the monitors folder of the project where you want to add the monitor file and select New > EPL Monitor.
2. In the New EPL Monitor 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 folder of the currently selected project, but you can select another folder using the Browse button.
b. In the Monitor name field, specify the name of the new monitor. This name is also used as the file name. It is recommended that you use TitleCase with the monitor name. The monitor name must not contain special characters, except for the dollar ($) and underscore (_) characters.
Specifying the .mon file 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.
3. Click Finish.
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. The EPL editor provides a monitor template with the specified monitor name.
4. In the EPL editor, add the desired EPL code and save the file.

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.