Time for action – customizing the hello world file with arguments and parameters

Let's create a more flexible version of the job you did in the previous section.

  1. Create a new transformation.
  2. Press Ctrl+T to bring up the Transformation properties window.
  3. Select the Parameters tab.
  4. Add a named parameter HELLOFOLDER. Insert chapter10 as the default value.
  5. Click on OK.
  6. Drag a Get System Info step to the canvas .
  7. Double-click the step.
  8. Add a field named yourname. Select command line argument 1 as the Type.
  9. Click on OK.
  10. Now add a Formula step located in the Scripting category of steps.
  11. Use the step to add a String field named message. As Formula, type "Hello, " & [yourname] & "!".
  12. Finally, add a Text file output step.
  13. Use the step to send the message data to a ...

Get Pentaho 3.2 Data Integration Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.