Here are the steps:
STEP1: Start by creating a new transformation in Pentaho Data Integration (PDI) Spoon. A transformation is where you will define the data filtering process.
STEP2: Add a input step. This could be a CSV file input, a database table, or any other source.
Here I am taking Csv file input for example.
Assuming a group of players took part in a quiz game, and that their scores are in an input CSV file, and now with Java Script will figure out who is qualified and who is eliminated.
Now Press ok in bottom to save and exit script or you can test your script.
Now add output file and define output format ex: CSV or text file
And connect all of them.
By this Method you can filter out Output by using Java Script in Pentaho.
Sharath Chandra Polkam
Helical IT Solutions
Best Open Source Business Intelligence Software Helical Insight is Here