The basic external adapter framework, when started, writes its set of parameters (system and user-defined) to a parameter file.
This file is written in either:
Commands then have full access to the parameter file.
There is an example of parameters in the simplified_xml_input_plugin.cnxml file.
<Internal id="x_paramFile"
label="Parameter File"
type="string"
default="/tmp/PARAMETER_FILE.txt"
/>
<Internal id="x_paramFormat"
label="Parameter Format"
type="string"
default="prop"
/>
<Internal id="x_addParamFile"
label="Add Parameter File"
type="boolean"
default="false"
/>
The parameter file is written to /tmp/PARAMETER_FILE.txt.
directory=/home/sjk/work/aleri/cimarron /branches/3.1/examples/input/xml_tables filename=trades.xml platformAuth=none platformCommandPort=31415 platformConnection=Connection1 platformHost=sjk-laptop platformSqlPort=22200 platformSsl=0 platformStream=Trades
or a full list of parameters, in the Java properties format. Note the format can be specified as shell for shell assignments, or as xml for a simple XML format.
When x_addParamFile is specified as true,
<Internal id="x_addParamFile" label="Add Parameter File" type="boolean" default="true" />
the argument /tmp/PARAMETER_FILE.txt is added to all commands prior to being executed.