Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

StreamerVariable

StreamerVariable

A
StreamerVariable
component is a user-defined variable whose scope includes all segments of a
Streamer
or
XmlStreamer
.
For example, if a Streamer contains three Parsers, the value of a
StreamerVariable
is available to all three Parsers. A Parser that processes a header segment might retrieve data from the header and store it in the
StreamerVariable
. The other Parsers, which process the repeating segment and the footer segment, can access the value of the
StreamerVariable
. You cannot use a regular
Variable
for this purpose because the value of the variable is not shared between segments.
In other respects, the
StreamerVariable
component is similar to a regular
Variable
. However, a
StreamerVariable
must have a simple, single-occurrence data type. For more information, see Variables.
You can define a
StreamerVariable
only at the global level of the Script.
The following table describes the properties of the
StreamerVariable
component:
Property
Description
initialization
An initial value for the
StreamerVariable
, assigned when the transformation starts. Select
InitialValue
and enter the value.
val_type
Defines the data type that the variable can store. Assign a simple type such as
xs:string
or
xs:integer
. Streamer variables cannot have complex or multiple-occurrence types. Default is
xs:string
.


Updated September 26, 2018