What is the difference between context_param from the command-line and contexts within Talend that are populated by a file?

Highlighted
Six Stars

What is the difference between context_param from the command-line and contexts within Talend that are populated by a file?

Linux 6.3

Talend 6.2

---------------

 

What is the difference between context_param from the command-line and contexts defined within Talend that are populated by a file?

Does context_param overwrite or take precedence over a context loaded from within a Talend job (via a file context load)? Or vice-versa?

Does context_param 'create' a context (variable) or does one have to be defined within the Talend metadata prior to using context_param from the command-line?

 

Highlighted
Sixteen Stars
Sixteen Stars

Re: What is the difference between context_param from the command-line and contexts within Talend that are populated by a file?

Hi,

The order the context variables are populated is (not absoluty sure between 2 and 3):

  1. "context".properties file (when launching autonomus script)
  2. command line (when launching autonomus script) - this overwrite 1
  3. file or database when using implicite tContextLoad (tab job, extra) (set when job starts)
  4. explicite tContextLoad (using component) or tJava (set during job run)

In any case, variables must be define in the jobs else they can't be used (compilation error).

So, they are never created "on demand", just populated.

 

Regards,

 


TRF
Highlighted
Sixteen Stars
Sixteen Stars

Re: What is the difference between context_param from the command-line and contexts within Talend that are populated by a file?

@tale103108, thank's for the Kudo.

You may also mark your case as solved if you found the answer were helpful.


TRF

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog