O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

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

Creating custom functions using code routines

Code routines enable the developer to create re-usable Java classes that can be integrated into Talend jobs, and in particular within tMap.

In the validation chapter, there is an example of a simple code routine. This recipe is a fuller explanation of creating and using code routines within Talend.

Getting ready

Open the job jo_cook_ch05_0040_codeRoutine.

How to do it…

  1. In the metadata section, open the Code folder and right-click on Routines. Select Create routine.
    How to do it…
  2. Name the routine regexUtilities and click on Finish. This will open a Java package and create a new class called regexUtilities, and a test method ...

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