If you connect tFlowToIterate to your tDatabaseInput component, you'll get 1 global variable per field.
Assume you have 3 fields (currentFilename, destinationFolder and destinationFilename) and the flow after tDatabaseInput is called "row1".
Here is the tFileCopy configuration :
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema