Skip to main content
Version: 8.2411.x.x RR

Groovy

In nevisDataPorter, expressions are generally provided as UEL expressions. However, it is possible to use the groovy scripting language to do more advanced data processing.

All value expressions can be changed to groovy through the language attribute on the XML expressions:

<dp:attrVal name="name" value='${return "\"" + in.user.lastname + "\"";}' language="groovy" />
<dp:attrList name="emailList" language="groovy">
<value>${return cfg.email[0];}</value>
<value>${return cfg.email[1];}</value>
<value>${return cfg.email[2];}</value>
</dp:attrList>

Groovy expressions can be used to replace DataFunctions to some extent. However, keep in mind that internal interfaces of nevisDataPorter evolve and that the use of them might result in configurations incompatible between different versions of nevisDataPorter.