Apama Documentation : 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 -Xgenerate sdf_file_path EPL_file_path
Element
Description
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 -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 -XgenerateBlock scenario block catalog
Element
Description
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 -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 is as follows:
event_modeler [options] [scenarioFile1.sdf scenarioFile2.sdf ...]
Option
Description
-h | --help
Displays this information.
-v | --version
Displays Event Modeler version information
-c file | --conf file
Path to Event Modeler configuration file. The default is event_modeler_config.xml.
-l file | --logfile file
Identifies the name of the Event Modeler log file.
-V level | --loglevel level
Specifies the log level.
-f file | --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.
-XforceBlockPaths path[,path ...]
Force Event Modeler to use the specified comma-separated block catalog paths.
-XaddBlockPaths path[,path ...]
Add the comma-separated block catalog paths to Event Modeler.
-XforceFunctionPaths path[,path ...]
Force Event Modeler to use the specified comma-separated function catalog paths.
-XaddFunctionPaths path[,path ...]
Add the comma-separated function catalog paths to Event Modeler.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback