How to launch a Joblet - 6.1

Talend Real-time Big Data Platform Studio User Guide

EnrichVersion
6.1
EnrichProdName
Talend Real-Time Big Data Platform
task
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

It is possible to use a Joblet as a step in a procedure. You can start a Joblet, or a subjob after the execution of a Joblet, using the Trigger Input and Trigger Output components from the Palette. In this example, the created Joblet is called Transformation.

  1. Drag the Trigger Input component from the Palette and drop it above your Joblet.

  2. Right-click Trigger Input and select a link of the type Trigger > OnSubjobOk so that your Joblet starts after the execution of the first subjob.

  3. Drag the Trigger Output component from the Palette and drop it below the Joblet.

  4. Right-click the input component of the Joblet and select a link of the type Trigger > OnSubjobOk so that your third subjob starts after the execution of your Joblet, Transformation.

To use this Joblet in a Job:

  1. Create a new Job.

  2. From the Repository tree view, click the created Joblet (Transformation) and drop it in the Job.

  3. Drop a tFileOutputDelimited component next to the Joblet component, drop a tWarn component above the Joblet component, and drop a tMsgBox component below the Joblet component.

  4. Right-click the Joblet component and then select the Row > Joblet OUTPUT_1 link and click tFileOutputDelimited.

  5. Double-click tFileOutputDelimited to display its basic settings and then define the path to the folder and file to be created in the File Name field.

    Drag and drop a tWarn component from the Logs & Errors family over the Joblet component.

  6. Right-click this component and select the link of the type Trigger > On Subjob Ok (TRIGGER_INPUT_1) and then click the Joblet component.

  7. Double-click the component that represents the Joblet to display its basic settings view.

    In the Joblet TRIGGER_INPUT_1 field, the link type defined in the Joblet is read-only.

    Note

    If you use many Triggers Input components in the Joblet and corresponding launching components in the Job, verify that the right component is attached with the right launching link in the Attached node field of the Basic settings view.

  8. From the Version list, select the Joblet version you want to use in your Job. In this example, we use the latest version of the Joblet.

  9. Drag and drop a tMsgBox from the Misc family under the Joblet component.

  10. Right-click the Joblet component and select the link Trigger > On Subjob Ok (TRIGGER_OUTPUT_1).

The tWarn component sends a warning massage and launches the next subjob holding the Joblet you created: Transformation. Once the second subjob is successfully executed, it launches a third subjob holding the tMsgBox component indicating at the same time that the transformation has been carried out.