Six 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

 

 

  • Data Integration
  • ESB
1 ACCEPTED SOLUTION

Accepted Solutions
Nine Stars TRF
Nine 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://www.talendforge.org/forum/viewtopic.php?id=1615

TRF
2 REPLIES
Nine Stars TRF
Nine 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://www.talendforge.org/forum/viewtopic.php?id=1615

TRF
Six Stars

Re: How to use context variable at run time

Thank you TRF