Data Mapping with a Script
This mapper is used to give you the flexibility of building your own mapper without the need to compile from source.
The source uses JSR-223 Scripting Engine.
The script language can be changed by setting the property
mapper.lang in your
### File: requisition.properties
## source configuration part
source = ...
## Run a no operation mapper
mapper = echo
If you don’t set the language
lang property the script engine tries to detect the language by evaluating the file extension.
Path to script source relative to
JSR-223 Script language by name
You can find a working example in Groovy in the
In addition to any other mapper, a final script mapper can be used by specifying
script.file in your requisition.properties` file.
The specified script will run after the configured mapper and can be used to transform the mapper’s output further.
To specify the scripting language, the
script.lang property can be used (see