I have a Kettle transformation that inserts data in a number of database tables. For each table there is a separate transformation (with an injection step) that makes some calculations, checks the data and finally inserts. These sub-transformations are called using a single threader step.
The main transformation looks something like this:
Input from -----> Dummy -----> Dummy -----> Dummy -----> Done
file | | |
| | |
v v v
Select Select Select
values values values
| | |
| | |
v v v
Single Single Single
threader 1 threader 2 threader 3
My problem is that I want to make sure that Single threader 1 finishes for a specific row before Single threader 2 runs for that row, and so on. This is because the first single threader adds a post in one table that then should be referenced in later tables and the database will throw an error if a reference to a post that does not exist (yet) is inserted.
I can't put the single threaders in one line because I need to discard all but a few fields of about 50 in total to match the injectors of the single threaders. That is what the select values does.
How can I solve this?
