Doing simple tasks with the JavaScript step
In the first versions of PDI, coding in JavaScript was the only way users had to perform many tasks. In the latest versions, there are many other ways for these tasks but JavaScript is still an option. There is the JavaScript step that allows you to insert code into a PDI Transformation.
Using the JavaScript language in PDI
JavaScript is a scripting language primarily used in website development. However, inside PDI, you use just the core language—you don't run a web browser and you don't care about HTML. There are many available JavaScript engines. PDI uses the Rhino engine from Mozilla. Rhino is an open source implementation of the core JavaScript language; it doesn't contain objects or methods related to the manipulation of web pages.
Note
If you are interested in getting to know more about Rhino, follow this link:https://developer.mozilla.org/en/Rhino_Overview
The core language is not too different from other languages that you might know. It has...