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
FromYesDefines the source field for the mapping.
ToYesDefines where the result should be inserted.
PrecedenceYesDetermines the order in which this mapping is applied relative to others.
FunctionYesSet to "Scripted mapping".
Function typeYesSet to "Groovy script"
ScriptYesCustom groovy script that transforms one or more message fields.

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