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. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

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
.