Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Data Type - Convert To Value Reader

Data Type Command Grooper.Extract

Converts this Data Type to a Value Reader with equivalent functionality.

Remarks

The Convert to Value Reader command provides a quick way to transform a Data Type into a Value Reader when you need to simplify your extraction configuration or reuse extraction logic in a more modular form.

This command is most useful when your Data Type is configured with a single local extractor or a single referenced extractor, and does not have any child extractors. It creates a new Value Reader node with the same extraction logic, inserts it at the same location in the parent, reassigns any references, and removes the original Data Type.

When to Use

  • When you want to refactor a Data Type into a Value Reader for reuse in multiple fields or extraction scenarios.
  • When your Data Type is simple (single extractor, no children) and a Value Reader is a more appropriate or maintainable object type.

How It Works

  • If the Data Type has a single local extractor, the new Value Reader will use the same extractor and copy over compatible filter and result options.
  • If the Data Type uses a single referenced extractor, the new Value Reader will reference the same extractor.
  • All references to the original Data Type are updated to point to the new Value Reader.
  • The original Data Type is removed from the repository.

Limitations

  • The command is only available if the Data Type has at most one extractor (local or referenced) and no child extractors.
  • Complex Data Types with multiple extractors or children cannot be converted using this command.

Best Practices

  • Use this command to streamline your extraction configuration and promote reuse of extraction logic.
  • Review the resulting Value Reader to ensure all necessary properties and options have been carried over.
  • Test extraction results after conversion to verify functional equivalence.

See Also

Notification