Executing part of a job once for every row in a dataset
Assume that you have a list of things or entities such as students, files, dates, products, and so on. Now, suppose that you want to execute a group of job entries once for every entity in that list.
Suppose that you have a file with a list of names, as for example:
name Paul Santiago Lourdes Anna
For each person, you want to:
Generate a file saying hello to that person
Wait for 2 seconds
Write a message to the log
For a single person, these tasks can be done with a couple of entries. If you have a small known list of entities (persons in this example), then you could copy and paste that group of entries, once for each. On the other hand, if the list is long, or you do not know the values in advance, there is another way to achieve this. This recipe shows you how.
Getting ready
For this recipe, we will use the Hello
transformation described in the introduction.
The destination folder for the file that is generated is in a variable named ${OUTPUT_FOLDER...