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 transformedto
- name of the entry to be createddefault
- default value fornull
values in thesourceField
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" />