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

Online Sample

Online Sample

For an online sample of this anchor, open the project
samples\Projects\persistent_search\persistent_search.cmw
.
The sample illustrates a
Group
that is configured with the
on_partial_match = skip
property. The
Group
contains two
Marker
anchors:
  • The first
    Marker
    searches for the text
    A
    .
  • The second
    Marker
    searches for a string containing any number of
    *
    characters. It has the
    adjacent
    property, which means that it must be adjacent to the first
    Marker
    .
On the first pass, the
Group
finds an
A
character at the beginning of the source document. It does not find the second
Marker
adjacent to the
A
character, however.
The
Group
reduces its search scope by eliminating the first
A
character, and searches again for the two adjacent
Marker
anchors. It continues this procedure until it successfully finds a string
A*
, which contains the adjacent
Marker
anchors.
You can observe the behavior in the event log. The log records that the
Group
fails on the first two trials and succeeds on the third.
Try experimenting with the
on_partial_match
and
adjacent
settings. You can see the effect in the color coding of the example source.
You can also try running the sample, although the result file is empty because the Parser does not contain
Content
anchors. If you set
on_partial_match = fail
, you can observe in the event log that the Parser fails, because the
Group
cannot find the adjacent anchors.


Updated September 26, 2018