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

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 = ...