If you want to enable your Route to call any function in a custom
Bean jar, routine or custom routine jar, you need to set up code dependencies, namely
custom Bean jar, routine or custom routine jar dependencies, on the Route.
Note that you can set up custom Bean jar, custom routine jar dependencies
on a Route only if you have installed the R2021-03 Studio monthly update or a later one
provided by Talend.
For more information about custom Bean jars, routines and custom routine
jars, see Creating a custom Bean Jar, What are routines and Creating custom routine jars.
Procedure
-
If you have installed the R2021-03 Studio monthly update or a later
one provided by Talend,
right-click your Route and select Setup Codes
Dependencies from the contextual menu in the Repository tree view. Otherwise, select Setup routine dependencies.
- If you have installed the R2021-03 Studio monthly update or a
later one provided by Talend, a dialog box with three tabs Custom Bean Jars,
Custom Routine Jars and Global routines is displayed. You can set up
custom Bean jar, custom routine jar and global routine dependencies on the
Route on the corresponding tab. By default, all system routines are
automatically set as dependencies for Routes.
- If you have not installed the R2021-03 Studio monthly update
or a later one provided by Talend, a dialog box with two tabs User routines and System
routines is displayed. You can set up user routine and system
routine dependencies on the Route on the corresponding tab. By default, all
system routines are listed on the System
routines tab.
-
Click the [+] button on a
tab if you need to set up the corresponding dependencies on the Route.
A dialog box is displayed, which lists all the corresponding
custom Bean jars, routines or custom routines jars.
-
Select one or more custom Bean jars, routines or custom routine
jars containing the functions that your Route calls.
-
Click OK to save your
changes and close the dialog box.
If a custom Bean jar, routine or a custom routine jar does not
contain any function that your Route calls, you can remove it by selecting it on
the tab and then clicking the [x] button.
This will help avoid redundancy in the exported dependencies.
Note: You can
right-click a custom Bean jar, routine or a custom routine jar to use the
Impact Analysis feature. This feature
indicates which Routes use the custom Bean jar, routine or the custom routine jar
and would therefore be impacted by any modification. For further information about
Impact Analysis, see
Analyzing repository items.