One Star

tWaitForFile, global variable, processing many files

 Hi, I'm developing the flow attached on the bottom
 
tWaitForFile is in create, update or delete mode
I filter create and present events in tFilterRow
I set a global variable based on file name (file name contains content date)
in the copy task I use ((String)globalMap.get("tWaitForFile_1_FILENAME"))
in the HttpRequest I use the global contentDate variable
I wonder if ((String)globalMap.get("tWaitForFile_1_FILENAME")) or the global variable could be overriden by next file event while the processing of a current one is not finished yet fully, do you have any idea about this?
I tried to put the content date into row field using javaRow but I could not access this field in tCopyFile
2 REPLIES
Seventeen Stars

Re: tWaitForFile, global variable, processing many files

hi pawkor,
the componenet setglobalvar doesn't manage output flow I think.
so I guess i've got nothing in row8
Use degub run mode & use step by step to check.
regards
One Star

Re: tWaitForFile, global variable, processing many files

hi, kzone,
tSetGlobalVar just passes input flow to output
my flow is working, I'm just not sure if I get any problems processing more files at once