In this tutorial, you will use all that you have learned so far, and at the same time, you will learn how to send arguments and parameters form a job to a transformation.
In the first place, let's create a new version of the Hello world transformation you created in Chapter 1, Getting Started with Pentaho Data Integration.
Create a new transformation.
Press Ctrl + T to bring the Transformation properties window.
Select the Parameters tab and add a named parameter. Call it
HELLOFOLDER
. As default value, typechapter10
and click on OK.Drag a Get System Info step to the canvas.
Double-click on the step and add a field named
yourname
. As Type, selectcommand-line argument 1
.Click on OK and add a UDJE step.
Use the step to add a
String
field named message. As Java expression, type"Hello, " + yourname + "!"
.Finally, add a Text file output step.
Use the step to send the message data to a file. As file name, type
${LABSOUTPUT...