Data templates and transformations > Data transformations > Using global variables in transformations

Using global variables in transformations
You can use global variables, for example field variables defined in an Event and variables defined in a before Process script, in transformation rules. To be able to use a global variable you must first define it as a root transformation parameter.
Note:
To define a variable as root transformation parameter
1
2
Enter the variable as Key and click OK.
Example 19
In this example you have the following simple Before Process script:
$hello="Hello";
$world="World";
You want to use $hello and $world in a transformation rule:
text()
concat($hello, ' ', $world)
To be able to use $hello and $world in this rule, you must define them as root transformation parameters:
$hello
 
$world
 
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26