In Modified JavaScript Step in Pentaho, you will notice that there are few pre-defined variable or constants defined. Check the image.

What is interesting here are the 3 variables defined under the Transform Constants directory.
These are the pre-defined, static variables in JavaScript step with below purposes:
CONTINUE_TRANSFORMATION: It reads all the incoming rows; processes it and moves the data to the next step (downstream).
SKIP_TRANSFORMATION: The step rejects the currently processed row and continues with the next one.
ERROR_TRANSFORMATION: This sends out an error message to Pentaho if any error message or rows are encountered.
Understanding the working of these Variables

Let us take a simple transformation.The objective of the Transformation is to read data from source input (Data grid in the demo above) and then filter out some rows based on certain condition using the Modified JavaScript Step. In the JavaScript Step, i have used the below code:
Subscribe to continue reading
Subscribe to get access to the rest of this post and other subscriber-only content.


6 responses to “TRANSFORM CONSTANTS in Modified JavaScript | Pentaho Data Integration”