O'Reilly logo

Pentaho 3.2 Data Integration Beginner's Guide by María Carina Roldán

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action calculating flexible scores by using variables

Suppose that by the time you are creating the transformation, the weights for calculating the weighted average are unknown. You can modify the transformation by using parameters. Let's do it:

  1. Open the transformation of the previous section and save it with a new name.
  2. Press Ctrl+T to open the Transformation properties dialog window.
  3. Select the Parameters tab and fill it like here:
    Time for action calculating flexible scores by using variablescode enrichmentabout
  4. Replace the JavaScript step by a new one and double-click it.
  5. Expand the Transform Scripts branch of the tree at the left of the window.
  6. Right-click the script named Script 1, select Rename, and type main as the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required