Jobs as subjobs
Talend Open Studio allows developers to use jobs within jobs. This is a great technique to use if you have tasks that can be used over and over again in many integration jobs. Over time, developers can build up a library of standard tasks, and componentizing in this way makes your development quicker and easier and promotes reuse of code, which is always good practice.
For example, suppose you have developed an FTP job that lists the files in a directory, connects to a remote FTP server, and transfers the files before deleting the source files. This FTP job can be designed generically so that it can be used for similar purposes in other jobs. Let's see what this might look like.
Our first job is the generic FTP job as shown in the following screenshot:
Our second job takes a delimited file, processes the data using a tMap component, and then writes the data to an XML file.
We can now enhance this job by bringing in the generic FTP job. In the Repository window, click on the...