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

Data Transformation User Guide

Data Transformation User Guide

Streamer Configuration Example 2

Streamer Configuration Example 2

The following Streamer contains a nested, repeating
ComplexSegment
. The nested
ComplexSegment
segment has its own header and nested, repeating
SimpleSegment
. The nested
ComplexSegment
does not have a footer.
Notice that the property
concat_header_to_repeating_segment
has been selected. The effect of this property is to concatenate the header to each instance of the repeating segment. The Streamer passes the concatenated segments to the parser
body_p
.
global level Example_Streamer_2 = Streamer >> level 2 contains = ComplexSegment >> level 3 header_segment = SimpleSegment level 4 opening_marker = MarkerStreamer >> level 5 search = PatternSearch >> level 6 pattern = "Header" level 4 closing_marker = MarkerStreamer >> level 5 search = PatternSearch >> level 6 pattern = "Header_end" level 4 run_component = Serializer([EmbeddedSerializer()]) level 3 repeating_segment = ComplexSegment level 4 selected checkbox concat_header_to_repeating_segment level 4 header_segment = SimpleSegment level 5 opening_marker = MarkerStreamer(PatternSearch("RH")) level 5 closing_marker = MarkerStreamer(PatternSearch("RH_END")) level 5 run_component = Serializer([GroupSerializer()]) level 4 repeating_segment = SimpleSegment level 5 opening_marker = MarkerStreamer(PatternSearch("Begin")) level 5 closing_marker = MarkerStreamer(PatternSearch("End")) level 5 run_component = Serializer() level 4 footer_segment = ... level 3 footer_segment = ...