Iterating and looping
Looping and iterating structures are common to most programming languages and Talend Open Studio is no different. In this section, we will look at ways to use the Studio to implement loops and iterations and further automate your integration jobs through these repeating functions.
Iterate connections
In Chapter 6, Managing Files, we looked at the tFileList component and saw an example of how to iterate the flow between components, in this case iterating through the files in a directory and passing these filename values onwards one by one. The Studio offers an Iterate flow option from its start components, that is, those that can commence a subjob or flow, often in addition to a Main flow. Let's illustrate another example of an iterate flow now.
In this scenario, we have a delimited input file and we want to transform its output in some way. The input file contains e-mail addresses in one of its columns and we also want to send an e-mail to each e-mail address. We can approach...