How to create a Joblet from scratch - 6.5

Talend Data Fabric Studio User Guide

EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
task
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio
  1. In Talend Studio Repository tree view, right-click the Job Designs node or Joblets under the Job Designs node, and select Create Joblet on the contextual menu.

  2. In the [New Joblet] dialog box, fill in at least the Name field to designate the Joblet. You can also add information to ease the Joblet management, such as: Description, Version, Author and Status.

    Field

    Description

    Name

    Enter a name for your new Joblet. A message comes up if you enter prohibited characters.

    Purpose

    Enter the Joblet purpose or any useful information regarding the job in use.

    Description

    Enter a description if need.

    Author

    This field is read-only as it shows by default the current user login.

    Locker

    This field is read-only as it shows by default the current user login.

    Version

    The version is read-only. You can manually increment the version using the M and m buttons.

    Status

    Select a status from the list. By default, the status you can select is development, testing, or production. To define more statuses, see Status settings.

    Path

    This field is read-only. It refers to the item access path in the repository. This field is empty when the item is created in the root folder.

    Icon

    Select the icon you want to use for your Joblet. It will show next to the Joblet name in the Repository tree view and in the Palette as well.

  3. In the Icon area, click the [...] button to open a window where you can browse to an icon of your choice and add it to your Joblet, if needed.

  4. Select the icon and click Open. The window closes and the selected icon displays in the Icon area in the [New Joblet] dialog box.

    Note

    The icon must have the dimensions 32 x 32. You will have an image-size related error if you try to use icons with other dimensions.

  5. If necessary, click revert to go back and use the by-default icon.

  6. Click Finish to validate your settings and close the dialog box.

    The design workspace opens showing the Joblet name as tab label. By default the newly created Joblet includes an input and an output Joblet component.

    The INPUT component is only to be used if there is a flow coming from the main Job that should be used in the joblet, and the OUTPUT component is only to be used if there is a flow going out of the joblet that needs be used in the main Job. You can remove either or both of them as needed.

  7. Include the transformation components you need and connect them to the Joblet input and the output components. In the example below, the input component is removed, and a tMap component is used for the transformation step.

    If you need lookup connections, include them here as well.

  8. Define the input component schema of the Joblet.

    As for any component requiring a schema definition, you can define your schema as Built-in, import it from an XML file or retrieve it from the Repository tree view.

The output schema is automatically retrieved from the preceding component (likely the transformation component) but you can also change it if you like.

The next step is to use the Joblet you have just created in your usual Job in order to replace the transformation steps.

Note

Note that you can also include Joblets in a Joblet.