Four 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?

 

  • Talend Studio
Tags (2)
1 REPLY
Nine Stars TRF
Nine 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