difference between global variables and Context Variables

Six Stars

difference between global variables and Context Variables

Hi Team

 

What is the major difference between Context Variables and global variables

Which one is best to use in talend

 

Thanks

Saranya


Accepted Solutions
Thirteen Stars

Re: difference between global variables and Context Variables

@SaranyaKatakam,

context variables must be pre-defined to be used in a job, although their value can be changed during run-time.Their value can also be passed into the job as a parameter when it starts.

globalMap variables can be defined during run-time - name and value - and need not exist at all to be used (will just be treated as null).  They cannot be passed into the job as a parameter when it starts.

Manohar B

All Replies
Thirteen Stars

Re: difference between global variables and Context Variables

@SaranyaKatakam,

context variables must be pre-defined to be used in a job, although their value can be changed during run-time.Their value can also be passed into the job as a parameter when it starts.

globalMap variables can be defined during run-time - name and value - and need not exist at all to be used (will just be treated as null).  They cannot be passed into the job as a parameter when it starts.

Manohar B