How to share a custom component in Talend Studio
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).
- Launch Talend Studio and connect to a remote project, in this example p3.
- Create an example Job called SharingCustomComponent.
- Drop the tFixedFlowInput and the custom component tFileOutputPDF from the Palette to the design workspace
- Connect the two components together using a connection.
Configure the components
- Double-click the tFixedFlowInput to display its Basic settings view.
- Click the [...] button next to Edit schema to define the input schema.
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.
Click in the Value column and type in a value for each
of the input columns.
- Set id to 1.
- Set name to "talend".
Double-click the tFileOutputPDF to display its
Basic settings view.
- Click Sync columns to synchronize the output file schema with the input file schema.
- 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.
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
Opening the example Job in another Talend Studio instance
Launch another instance of Talend Studio and connect to the same remote project, in this example
During the startup progress, Talend Studio will automatically detect the custom component from the remote Git repository and install it locally.
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_18.104.22.16870623_1246\components.