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

Concat

Data Action Grooper.Core

Combines adjacent records in a collection based on a configurable trigger expression.

Remarks

Overview

The Concat action is used to merge neighboring records within a multi-instance Data Section or Data Table when a specified condition is met. This is commonly used to normalize extracted data, such as joining fragmented rows or records that should be treated as a single logical item.

The action operates by evaluating a Boolean trigger expression for each pair of adjacent records in the target collection. If the expression returns true, the records are concatenated—fields and child elements from the second record are copied into the first, and the second record is removed from the collection.

Usage and Configuration

  • Assign the target collection using the 'Collection' property. This should reference a Data Section or Data Table containing the records to be processed.
  • Configure the 'Trigger' property with a Boolean expression that determines when records should be merged. The expression can reference fields or variables from both the current and next record.
  • The action is typically used in Data Rule chains to clean up or restructure extracted data before validation or export.

How It Works

  1. The action iterates through the target collection in reverse order, examining each pair of adjacent records.
  2. For each pair, the trigger expression is evaluated. If it returns true, the records are merged.
  3. Merging copies all child fields and containers from the second record into the first, preserving non-blank values and collections.
  4. The second record is then removed from the collection.
  5. The process continues until all records have been evaluated.

Diagnostics

Diagnostic information is collected during processing and can be reviewed to understand which records were merged and why. Artifacts include:

  • The result of each trigger expression evaluation.
  • Details of merged records and copied fields.
  • Any changes made to the collection structure.

Best Practices

  • Use clear and specific trigger expressions to avoid unintended merges.
  • Test the action on sample data to verify correct behavior before deploying in production.
  • Review diagnostics to ensure data integrity after concatenation.

For more information, see the documentation for Data Rule, Data Section, and Data Table.

Properties

NameTypeDescription
General
Info

See Also

Used By

Notification