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
Forteen 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
Don't forget to give kudos/accept the solution when a replay is helpful.

All Replies
Forteen 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
Don't forget to give kudos/accept the solution when a replay is helpful.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download