tSetGlobalVar allows you to define and set global variables in GUI.
In the following screenshot, you can see that how to define global variables in tSetGlobalVar
In the following screenshot, you can see that how to use Talend Global variable it in tMap
In the following screenshot, you can see that how to use Talend Global variable in tJava.
In the similar way you can use in many other components.
Cheers!
Uma