Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have four files in a certain location and I need to create a job such that it should run only if there are four expected files. I know I can use twaitforfile four times, but I believe it's redundant process. All the files will have a common naming format with date and time in the name etc. Is there a different solution other than using multiple twaitforfile components?
Maybe you can try tFileList to iterate all the files? There are several pre-defined global variables that can be used to determine if it satisfies the condition to continue or not, use runIf connector to trigger next processing.
These global variables includes
((Integer)globalMap.get("tFileList_1_NB_FILE"))
// counts the number of files are found.
((String)globalMap.get("tFileList_1_CURRENT_FILE"))
// the current file name
Regards
Shong