Creating complex test data using tRowGenerator, tFlowToIterate, tMap, and sequences

This recipe shows how a more complex set of test data can be created. In this example, we will build a set of CSV data ready to be loaded into a database which has the following structure:

  • Customer has 1 or more orders
  • Order has 1 or more order items

Getting ready

  1. Open the jo_cook_ch10_0110_complexTestData job.
  2. You will see a section of code that has been deactivated. Do not activate this code until later in the exercise.
  3. Run the job, and you will see that the customer file is created.

How to do it...

The steps for creating complex test data using tRowGenerator, tFlowTolterate, tMap, and sequences are as follows:

  1. Activate components tFixedFlowInput_2, tMap_2, and tFileOutputDelimited_2 ...

Get Talend Open Studio Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.