Book Image

Getting Started with Talend Open Studio for Data Integration

By : Jonathan Bowen
Book Image

Getting Started with Talend Open Studio for Data Integration

By: Jonathan Bowen

Overview of this book

Talend Open Studio for Data Integration (TOS) is an open source graphical development environment for creating custom integrations between systems. It comes with over 600 pre-built connectors that make it quick and easy to connect databases, transform files, load data, move, copy and rename files and connect individual components in order to define complex integration processes. "Getting Started with Talend Open Studio for Data Integration" illustrates common uses and scenarios in a simple, practical manner and, building on knowledge as the book progresses, works towards more complex integration solutions. TOS is a code generator and so does a lot of the "heavy lifting"ù for you. As such, it is a suitable tool for experienced developers and non-developers alike. You'll start by learning how to construct some common integrations tasks ñ transforming files and extracting data from a database, for example. These building blocks form a "toolkit"ù of techniques that you will learn how to apply in many different situations. By the end of the book, once complex integrations will appear easy and you will be your organization's integration expert! Best of all, TOS makes integrating systems fun!
Table of Contents (22 chapters)
Getting Started with Talend Open Studio for Data Integration
About the Author
About the Reviewers

On Subjob Error

Let's extend our first example by illustrating how a job can be made to take different execution paths based on what happens during the running of the job.

In the previous example we configured an OnSubjobOK example, but what if the subjob did not work as expected? The Studio also offers another subjob connector—OnSubjobError—for this situation. Let's modify the job to show this; perform the following steps:

  1. Search for message in the Palette window and drop a tMsgBox component onto the designer.

  2. We can accept most of the default settings for this component, but change the Message parameter to Something Went Wrong!!.

  3. Right-click on the order_lines component, select Trigger | On Subjob Error, and drop the connector onto the message box component.

If we run the job now, it will work in exactly the same way as before. The database query will run, the data will be extracted to a file, and the file will be zipped.

However, let's change the order_lines configuration to force an error...