I am working on file collector activity. If there is no files in the directory for 2 days, then i need to get alert.
How can i make this possible?
In file collector, I will check 'process missing file'. And then alert activity. But in between my file collector and alert activity what i need to do?
Important Note: In file collector activity, we scheduled for each 2 hours daily. So per day it will check the directory for 12 times. And so 24 times for 2 days. After this check, if no file is there in my directory, i need to notified.
In my case, A file will generate for every 1 hour in SFTP. So i need to notify when there is no file for 2 days. My file name is like eg: abcd* (abcd_followed by 6 digit random number. so i gave abcd* in file collector).
I have created a option "myOption" (type integer; value 0)
Below is my workflow:
i have 2 questions. My questions are,
1) In test activity, I have given vars.recCount > 0, then enable 'True'.
As i don't know my exact file name, i have given vars.recCount > 0. Will this work?
2) If file exist, i will make option value as 0. But for every 1 hour, if file is not there, then i need to do increment. How can i increment my option value. Either like SetOption('myOption',myOption+1) or someother thing?