Skip to main content

Groovy script

The Groovy mapping transforms message fields by executing a Groovy script. The script can produce an output to populate a field in the transformed message or modify the message directly.

Groovy mappings are useful when transformation requirements cannot be fulfilled using standard mapping types.

Attributes for Groovy Script

AttributeRequiredDescription
fromYDefines the source field for the mapping.
toYDefines where the result should be inserted.
FunctionYSet to "Scripted mapping".
Function typeYSet to "Groovy script"
ScriptYCustom groovy script that transforms one or more message fields.

For more information on what can be done in Groovy scripts, go to: Groovy Mapping