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 ...

Get Talend Open Studio Cookbook 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.