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
| Attribute | Required | Description |
|---|---|---|
| from | Y | Defines the source field for the mapping. |
| to | Y | Defines where the result should be inserted. |
| Function | Y | Set to "Scripted mapping". |
| Function type | Y | Set to "Groovy script" |
| Script | Y | Custom groovy script that transforms one or more message fields. |
For more information on what can be done in Groovy scripts, go to: Groovy Mapping