How to share a custom component in Talend Studio - 8.0

Version
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Components
Last publication date
2023-09-14

How to share a custom component in Talend Studio

This article explains how to share the custom component tFileOutputPDF in Talend Studio.

Then, you will create a Job with the custom component, open the Job in another Talend Studio instance and check that the custom component has been installed automatically and the Job opened without warnings or errors.

Note that you can develop custom components using the Talend Component Kit framework and share them on Talend community. For more information, see Developing a component using Talend Component Kit.

When working on a remote project, if a Talend Studio has custom components installed and in use in one or more Jobs, other Talend Studio instances connecting to the same remote project must also have the same custom components installed.

This is necessary to ensure that the Jobs can be opened properly. Without the necessary custom components, you will receive a warning message "Some components are not loaded" when you open a Job using a custom component that has not been installed on the system you are using to open the Job.

Talend Studio provides the ability to automatically install custom components. If you install custom components and share them in Talend Studio manually, subsequent connections to the same remote project by other Talend Studio instances will automatically detect and install custom components.

Creating an example job

Before you begin

You have downloaded a custom component from TalendForge Exchange and installed it in Talend Studio, in this example tFileOutputPDF. For more information about how to install and update a custom component, see on Talend Help Center (https://help.talend.com).

Procedure

  1. Launch Talend Studio and connect to a remote project, in this example p3.
  2. Create an example Job called SharingCustomComponent.
  3. Drop the tFixedFlowInput and the custom component tFileOutputPDF from the Palette to the design workspace
  4. Connect the two components together using a Row > Main connection.

Configure the components

Procedure

  1. Double-click the tFixedFlowInput to display its Basic settings view.
  2. Click the [...] button next to Edit schema to define the input schema.
  3. Click the [+] button and add two input schema columns, in this example id as Integer and name as String.
    The two schema columns display automatically in the Values list.
  4. Click in the Value column and type in a value for each of the input columns.
    • Set id to 1.
    • Set name to "talend".
  5. Double-click the tFileOutputPDF to display its Basic settings view.
  6. Click Sync columns to synchronize the output file schema with the input file schema.
  7. Click the [...] button next to the Destination Name field and browse to the output file you want to print data in, out.pdf in this example.
  8. Press Ctrl+S to save your Job and close it.
    You don't need to run the Job, for this example the objective is just to see the Job that contains a custom component can be opened properly in another Talend Studio instance.

Sharing the custom component

Procedure

  1. Click Project settings in the toolbar.
  2. Click the Custom component tab under the Designer node.
  3. Select the custom component, tFileOutputPDF, in the Custom Components list and move it to the Shared Components list.
  4. Click OK.

Opening the example Job in another Talend Studio instance

Procedure

  1. Launch another instance of Talend Studio and connect to the same remote project, in this example p3.
    During the startup progress, Talend Studio will automatically detect the custom component from the remote Git repository and install it locally.
  2. Open the example Job SharingCustomComponent and see that you don't have the warning message "Some components are not loaded", meaning the custom components are installed well in this Talend Studio.

    The custom component is installed into the local directory, in this example <Talend Studio_installation_path>\plugins\org.talend.designer.components.localprovider_6.4.1.20170623_1246\components.