Seven Stars

How to use context variable at run time

Hi -

 

I have a job that uses a REST service. I pull a variable (customer_account) from a database, and require another variable (date) to be entered at run time

 

On the build I want to execute as follows MyJob.sh $date(yyyy-mm-dd).

 

I added the date under the context variable, but do not get a prompt for the date value when running it 

 

 

Any suggestions?

My job:

 

MainJob.png

tRESTClient:

tRESTclient.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Forteen Stars TRF
Forteen Stars

Re: How to use context variable at run time

You can pass the value for a context variable on the command line using "--context=$yourVariable".
Check this post https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-...


TRF
2 REPLIES
Forteen Stars TRF
Forteen Stars

Re: How to use context variable at run time

You can pass the value for a context variable on the command line using "--context=$yourVariable".
Check this post https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-...


TRF
Seven Stars

Re: How to use context variable at run time

Thank you TRF