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

Convert Data

Code Activity Grooper.Activities

Converts a document to another Content Type.

Remarks

This activity generates data for the target type using a hierarchy of Data Actions, which specify how data should be copied from the source type. The result is then saved back to the original document, or used to create a new child document.

Conversion of data from one Data Model to another is useful as a data normalization strategy, to handle cases where data captured from documents requires significant transformation before export. The general strategy is to define two data models - one modeled after the documents (the Extract Model) and the other modeled after the output data (the Output Model). Data extraction is performed using the Extract Model, and then the document is converted to the Output Model before export.

This strategy eliminates the need to perform data transformation as a part of extraction or export, greatly simplifying both of these tasks. It allows the Extract Model to look exactly like the documents, and frees up extraction designers to focus solely on capturing data.

In cases where the input documents come in many different flavors, multiple Extract Models may be defined, which then normalize down to a single Output Model.


How It Works

  • The activity takes a Batch Folder with a specific Content Type (the Source Type).
  • A set of Data Actions is executed to copy, transform, or map data from the source to the target Content Type.
  • Optional Data Rules can be applied before and after conversion for advanced preprocessing and postprocessing.
  • The converted data can be saved as the primary, secondary, child, or replacement document type, depending on the 'Save As' setting.

Usage Scenarios

  • Data Normalization: Standardize data from multiple document types into a single export format.
  • Data Transformation: Apply business rules, calculations, or mappings between different data models.
  • Multi-Stage Processing: Chain extraction, conversion, and export steps for complex workflows.

Configuration Tips

  • Define the 'Source Type' and 'Target Type' to match your extraction and output models.
  • Use the 'Actions' collection to specify how each data element is copied or transformed.
  • Enable 'Run Extraction' if the source document has not yet been extracted.
  • Add 'Preprocessing Rules' to clean or validate data before conversion.
  • Add 'PostProcessing Rules' to finalize or validate data after conversion.
  • Choose the appropriate 'Save As' option to control how the converted data is stored.

Related Concepts

  • Data Action: Defines the logic for copying or transforming data elements.
  • Data Rule: Used for preprocessing and postprocessing logic.
  • Batch Folder: The document being converted.
  • Content Type: The source and target data models.

For more information, see the documentation for Data Action, Data Rule, and Content Type.

Properties

NameTypeDescription
General
Input Options
Output Options
Processing Options

See Also

Used By

Notification