Talend Consultancy

tSetGlobalVar

A site about Talend

tSetGlobalVar Component

The tSetGlobalVar Component is a convenient method for adding Gobal Variables to globalMap.

In the following screenshot, you can see that a simple Job has been created to define two new Global Variables which are added to globalMap using tSetGlobalVar.

This is equivalent to using a tJava component to make the following assignments.

globalMap.put("myString", "Hello World!");
globalMap.put("myInteger", 999);

The tJava Component shown in this example simply prints the values of the newly created variables.

System.out.println("myString=" + globalMap.get("myString"));
System.out.println("myInteger=" + globalMap.get("myInteger"));

Image 1




Talend Consultancy
comments powered by Disqus

© www.TalendByExample.com