You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hi,
I have the job design currently check the condition and send a mail with log file attachment.
Log file -----if condition ----- send mail
If condition checks the system hours with the input context value "email_time" and triggers the send mail option if true.
Talend.getdate("HH").equals(context.email_time)
Now, I like to pass the context value "email_time' with mutiple values ="07,04,12,16,21" and check the if condition for each value say 07,04,12,16,21 seperately before pass the trigger to send mail.
Please let me know your pointers.
Offline
Hi,
If you know the Apache commons-lang library ( http://commons.apache.org/lang/ ), it contains ArrayUtils class that could help for what you are trying to do. The condition would become:
ArrayUtils.contains(context.email_time.split(","), TalendDate.getDate("HH"))Daniel
Offline
Pages: 1