Developing Apama Applications > Developing Apama Applications in Event Modeler > Using Event Modeler > Event Modeler command line options
Event Modeler command line options
After you define a scenario, you can use a command line to generate EPL for that scenario, or to generate a block from that scenario. This might be useful for custom scripting. The Event Modeler executable is in the bin directory of your Apama installation directory. In addition to generating EPL or a block, you can use the command line format to obtain information about Event Modeler. Information about all Event Modeler command line options is in the table at the end of this topic.
Scenario to EPL
The command line format for generating EPL from a scenario is as follows:
event_modeler.exe -Xgenerate sdf_file_path EPL_file_path
sdf_file_path
Path of the scenario definition file for the scenario that you want to save.
EPL_file_path
Name of the new monitor.
For example:
event_modeler.exe -Xgenerate c:\dev\scenario1.sdf scenario1.mon
This example generates the scenario1.mon file from the scenario1.sdf scenario definition file.
Scenario to block
The command line format for generating a block from a scenario is as follows:
event_modeler.exe -XgenerateBlock scenario block catalog
scenario
Path of the scenario definition file for the scenario that you want to save as a block.
block
Name of the new block.
catalog
Path of the blocks catalog in which to save the new block.
For example:
event_modeler.exe -XgenerateBlock scenario1.sdf scenario1Block.bdf C:/Apama/blocks
This example generates the scenario1Block.bdf file from the scenario1.sdf file and stores the new block in C:/Apama/blocks.
All options
The format for executing event_modeler.exe is as follows:
event_modeler.exe [options] [scenarioFile1.sdf scenarioFile2.sdf ...]
event_modeler options
-h | --help
Displays this information.
-v | --version
Displays Event Modeler version information
-c | --conf file
Path to Event Modeler configuration file. The default is event_modeler_config.xml.
-l | --logfile file
Identifies the name of the Event Modeler log file.
-V | --loglevel level
Specifies the log level.
-f | --file file
Loads the specified scenario definition file into Event Modeler. Repeat to load multiple scenario definition files.
-XgenerateDebug [true|false]
Generate debug output or not (default is true).
-Xgenerate scenario EPL_file
Generate EPL from the specified scenario definition file.
-XgenerateBlock scenario block catalog
Generate a block from the specified scenario definition file and save the new block in the specified catalog.
-XforceBlockCatalogPaths path[,path ...]>
Force Event Modeler to use the specified comma separated block catalog paths.
-XaddBlockCatalogPaths path[,path ...]>
Add the comma separated block catalog paths to Event Modeler.
-XforceFunctionCatalogPaths path[,path ...]
Force Event Modeler to use the specified comma separated function catalog paths.
-XaddFunctionCatalogPaths path[,path ...]>
Add the comma separated function catalog paths to Event Modeler.
Copyright © 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.