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 tMap expressions

In the previous example, we demonstrated how to manipulate the schemas and basic mapping of input columns to output columns. This recipe will show how to add much more complex rules to tMap and how to use the Talend supplied functions.

Expressions are limited to a single line of Java code, but can contain any of the following:

  • Constants
  • Input variables
  • The globalMap and context variables
  • The tMap variables (see next recipe)
  • Talend supplied functions
  • User supplied code routines
  • Standard Custom java functions
  • Included methods from JAR files

Getting ready

Open the job jo_cook_ch04_0020_usingExpressions

How to do it...

  1. Open tMap.
  2. Click the left mouse button on the output transactionDateTime column.
  3. You will notice that the expression button ...

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