Copy transformer

Creates a new entry in a row that is a copy of the selected entry in a row. Optionally null can be replaced by a default value.

Usage:

<copy from="sourceFieldName" to="targetFieldName" />
<copy from="sourceFieldName" to="targetFieldName" default="default"/>

Attributes:

  • from - name of the entry to be transformed

  • to - name of the entry to be created

  • default - default value for null values in the sourceField

The to value can include Array structure. For example:

<copy from="sourceFieldName" to="foo.bar" />

This will add a new entry in the row with the name foo and value of an array with key bar and value of the sourceFieldName. To add a new entry with the name of “foo.bar” use the following syntax:

<copy from="sourceFieldName" to="foo\.bar" />