Learning to insert java code in a Java Class step

Just as we did in the JavaScript section, in order to show you how to use the Java Class step, we will implement the same Transformation from Chapter 6, Controlling the Flow of Data, this time using Java code:

  1. Open the Transformation created earlier and save it with a different name.
  2. Delete the JavaScript step.
  3. From the Scripting category of steps, select and drag a User Defined Java Class step to the work area. Create a hop from the Split field to rows step toward this.

This new Transformation will be the base for the examples that you will build.

Before introducing your own code, PDI requires that you enter a basic skeleton. This is the minimal piece of code that you have to write and ...

Get Learning Pentaho Data Integration 8 CE - Third Edition 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.