Trace Process Object
The Integrator Trace process object can be used to debug Integrator scripts. This object will write intermediate column values either to standard output or trace files. The Trace object can limit the trace data to certain rows or columns of the input data. It is typically used as a sub-object.
NOTE: The format options "horizontal" and "column_header" will generate data that can then be processed by Integrator or Builder This provides a convenient way to snapshot an intermediate result of an Integrator script, for example, when there are calculated fields.
Trace Attributes
Attribute | Type | Description |
---|---|---|
process_type (required) |
String | Identifies the object as a Trace process object. The value of this string is "trace". |
input (required) |
String | Defines the object from which the data flow is arriving. |
disable | Boolean | Disables tracing for the Trace object. If this attribute is "true", then no tracing is performed. This allows a Trace object to remain in an Integrator script for later use, without any consequences. |
filename | String | Defines the name of an output trace file. If this attribute exists, then the trace output is written to the named file. If this attribute does not exist, then the trace output is written to the command line. |
append | Boolean | When set to "true", information will be appended to the end of an existing trace file instead of overwriting it. Some care should be taken to ensure that the columns of the appended data match the columns that already exist in the file. |
start | Integer | Defines the starting row number for which to display trace information. This is based on rows that flow through the Trace object. The first row is row number one. Any rows before the start row will not be traced. If this attribute is not present, then tracing will start with the first row. |
end | Integer | Defines the ending row number for which to display trace information. This is based on rows that flow through the Trace object. The first row is row number one. Any rows after the end row will not be traced. If this attribute is not present, then tracing will not be limited by an ending row number. |
qual_str | String | Specifies a qualification string that is used to filter rows to be traced. Only rows between the start
and end row number that match the given criteria will be traced. NOTE: This attribute is Qual Str in Visual Integrator. |
limit | Interger | Defines the maximum number of rows that will be output as trace information. This attribute is applied after the qual_str attribute, and therefore works differently than the start and end attributes, i.e. the limit count applies to rows leaving the Trace object. |
case_sensitive | Boolean |
Controls whether string comparisons in the qualification string are case-sensitive. When set to "true", string comparisons are case-sensitive. When set to "false", comparisons are case-insensitive. The default is "true". NOTE: This attribute is Case Sensitive in Visual Integrator. |
columns | Array of Strings | Defines the set of columns that are displayed in the trace output. If this attribute is omitted, then all columns that pass through the Trace object will be displayed. Note that this may be less than all possible columns in the flow, since Integrator only processes columns that are needed by the output object of a flow. |
format (required) |
String | Defines the format of the trace information. This attribute can have one of the following
values:
|
verbose | Boolean |
Controls whether or not trace rows are labeled with the Trace object name and row number.
|
delimiter | String | Defines the delimiter used for the horizontal or column_headers trace formats. It defaults to horizontal tab ("\t"). |
dictfile1 | String |
Similar to the dictfile1 attribute in the Fileout output object. If present, then this attribute contains the name of an old-style dictionary that is written with the format of the trace output. This attribute should only be used for non-verbose horizontal output. NOTE: This attribute is Dictionary File in Visual Integrator. |
dictfile2 | String |
Similar to the dictfile2 attribute in the Fileout output object. If present, then this attribute contains the name of a new-style dictionary that is written with the format of the trace output. This attribute should only be used for non-verbose horizontal output. This attribute is preferred over dictfile1. NOTE: This attribute is Dictionary File in Visual Integrator. |
See also: Embedded Trace Object.