Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a scenario. I want to send mail IF File is not available in Linux Directory. Basically It is FileWatcher. If File is available Job is going to Next Component.But IF File not available then It is not sending mails.If Anyone helps will be helpful
Settings of the components attached in the post
Hi abhi90
There is a global variable pre-defined on tFileExist component, this variable stores the checking result of a file, you can use this variable as the condition of runIf connector, eg;
tfileExist--runIf1--continue to execute other subjobs
--runIf2--tSendMail
set the condition of runif1 as:
((Boolean)globalMap.get("tFileExist_1_EXISTS"))
set the condition of runif2 as:
!((Boolean)globalMap.get("tFileExist_1_EXISTS"))
Regards
Shong
Hi Shong,
My File is not present in Linux Directory. But for not presence of File in Directory Still Mail not generating.
This is not presence of File
!((Boolean)globalMap.get("tFileExist_1_EXISTS"))
This is presence of File
((Boolean)globalMap.get("tFileExist_1_EXISTS"))
In the tfileexist I am using:
((String)globalMap.get("tFTPFileList_1_CURRENT_FILEPATH"))
Hi
With this job design, there should be at least one file matched on tFileList, otherwise, all other components after tFileList will not run.
Regards
Shong
Derive On Component error to mail component.
did it help you?
Hello,
Could you please eloborate your explanation because I am need of this part to add in my job.I am bit confused where and how to declare the condition to execute.
Thanks in advance for your reply,
Manoj