Run a job on a date condition

One Star

Run a job on a date condition

Hello,
I need to run a job only when the current date is in month january.
I have seen that there is the tWaitForSQLData component but it only works on a reached nb of rows.
Could you give me some suggestions please.
Thanks
One Star

Re: Run a job on a date condition

You can maybe use the trigger Runif to the tRunJob component.
One Star

Re: Run a job on a date condition

Hello,
Set a variable with tSetGlobalVar :
key : "the_date"
value : TalendDate.getDate("MM")
Plug a trigger "run if" from the tSetGlobalVar to your job with this condition :
("06").equals(((String)globalMap.get("The_date")))
In this example the job will run if the current date is in month june.
JC
One Star

Re: Run a job on a date condition

Thanks very much.
The solution of jcoutin works very good.
One Star

Re: Run a job on a date condition

Really working ..thanks
One Star

Re: Run a job on a date condition

Smiley Happy
Happy to be helpful.