One Star

Multiple directories as input for tFileList

Hi all,
Is it possible to have somehow multiple inputs for the directory parameter in tFileList ?
My scenario:
tFileInputDelimited --main--> tMAP --main--> tJava --Iterate--> tFileList --interate-->tFileCopy
I use an input file which contains for example 2 folders
example:
c:/temp1
c:/temp2
Using input, tMap and tJava I set a context variable (context.myvariable) so it contains the folder.
tFileList Directory variable is set to context.myvariable
When executing I get a null pointer exception in tFileList.
If I hardcode tFileList to a specific folder, it works fine.
Any help is appreciated.
Regards,
Peter Verschueren
1 REPLY
One Star

Re: Multiple directories as input for tFileList

Hi all,
I managed to fix it.
scenario:
tFileInputDelimited --row--> tJavaRow --row--> tFlowToIterate --interate--> tFileList --interate--> tFileCopy
tJavaRow is used to set the context variable myvariable
tFileList takes this context as Directory parameter
Now it works !!
Regards,
Peter Verschueren