When one project references another, all items in the
referenced project are available for reuse from the main project.
For example, you might want to create a library of reusable subroutines in a project. Or
you might want to create similar project settings to reuse in other projects.
Before you begin
- You have read-writing authorization for the main and referenced projects. For further information, see Talend Administration Center
User Guide.
- You have opened the main project in the Studio.
Procedure
-
From the main project, open the Job on which you want to use an item from the
reference project.
Below is an example of a Project2 tree view in Talend Studio.
As you can see in the above figure, all resources in Project1 and Project3 are
accessible directly from Project2. The resources in the two referenced projects
are in read-only mode: they are available for reuse but cannot be
modified.
-
Use any element from the reference project in the open Job.
For example double-click a component in the Job and call a user-routine from
the reference project, or drop context variables created in the reference
project to the open Job in the main project.
-
Run your Job with the new routine or context variables.
Items and resources in the referenced projects are
always up-to-date since the refresh option in Talend Studio will
refresh EVERY item in the studio. However, the refresh operation could be quite
long if you have too many references and items in each of your projects. It is
therefor preferable not to use very big referenced projects, especially if you
use the database repository.