tWaitForFile, global variable, processing many files

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
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

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog