Input File Format
The simulator input file provides the data that is passed to the Business Rules Server in the initialize and decision requests. The input file enables users to specify the names of the fields to set and the data to set. It also allows the user to specify comparison fields field names and data. Each record in the file begins with an identifier.
| Short and Long Forms | Description | |
|---|---|---|
| IF | InitField | Initialize message field |
| ID | InitData | Initialize message data. Causes the initialize request message to be sent to the Business Rules Server |
| DF | DecisionField | Decision message field |
| DD | DecisionData | Decision message data. Causes the decision request message to be sent to the Business Rules Server |
| CF | CompareField | Compare decision response message field |
| CD | CompareData | Compare decision response message data |
| OF | OutputField | Output decision response message field |
| TM | TermMsg | Causes the terminate request message to be sent to the Business Rules Server |
| WF | Workflow | Set the name of the workflow to call |
| TF | TraceFile | Sets the name of the trace file to which to write output |
| TR | Trace | Turns tracing on and off |
| IP | ServerIP | The IP address of the Business Rules Server on which to connect |
| PT | ServerPort | The port number of the Business Rules Server on which to connect |
| T1 | responsetimer | Maximum time the Business Rules Server allows a decision to execute |
| T2 | requesttimer | Maximum time the Business Rules Server remains inactive between decision requests |
| CT | clienttype | Sets the client type field:
|
| VB | Verbose | Turns on and off the verbose output |
| QU | Quiet | Turns on and off the quiet output |
| DO | showDiff | Turns on and off the difference only output |
An asterisk in the first column designates a comment line. Blank lines are also allowed.
- Workflow=workflowName
- TraceFile=name of Trace file
- Trace=Y|N
- ServerIP=Server IP Address
- ServerPort=ServerPort
- Verbose=Y|N
- showDiff=Y|N
- Quiet=Y|N
The Workflow, ServerIP, and ServerPort values are applied to the next initialize request message. Therefore, ensure that these identifiers appear before the InitData identifier in the file.
The TraceFile identifier takes effect as soon as it is encountered. Each time a TraceFile identifier is found, the old trace file is closed and a new one is opened, unless it is the same as the currently opened file. If it is the same, it is ignored. If a trace file with the same name already exists, the contents are overwritten.
field descriptor = field name, data type, lengthThe data type and length parameters are not required if the field is an IBM® field (this information is built-in to the simulator). For user-defined fields (non-IBM), if these parameters are not specified, the data type defaults to CHAR and the length is determined by the actual length of the entered data. If a length is specified, BYTE and PACK fields are padded to the left with zeros and CHAR fields are padded to the right with spaces. Also, data entered greater than the length displays an error and is not sent to the Business Rules Server. The data type specified in the file must match the data type the server is expecting; no automatic converting is performed. If a user field is specified as type BYTE in the input file and a user exit on the server has specified the same field as type CHAR, the simulator does not convert the value.
data descriptor = data for field1,data for field2,data for field3,data for field4,data descriptor = data for field1,data for field2,,data for field4,data descriptor = ,data for field2,,data for field4,