Skip to main content Skip to complementary content

Setting up code dependencies on a Job

If you want to enable your Job to call any function in a routine or custom routine jar, you need to set up code dependencies, namely routine or custom routine jar dependencies, on the Job.

Note that you can set up custom routine jar dependencies on a Job only if you have installed the R2021-03 Studio monthly update or a later one provided by Talend.

For more information about routines and custom routine jars, see What are routines and Creating custom routine jars.

Procedure

  1. If you have installed the R2021-03 Studio monthly update or a later one provided by Talend, right-click your Job 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 two tabs Custom Routine Jars and Global routines is displayed. You can set up custom routine jar and global routine dependencies on the Job on the corresponding tab. By default, all system routines are automatically set as dependencies for Jobs.
    • 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 Job on the corresponding tab. By default, all system routines are listed on the System routines tab.
  2. Click the [+] button on a tab if you need to set up the corresponding dependencies on the Job.
    A dialog box is displayed, which lists all the corresponding routines or custom routines jars.
  3. Select one or more routines or custom routine jars containing the functions that your Job calls.
  4. Click OK to save your changes and close the dialog box.

    If a routine or a custom routine jar does not contain any function that your Job 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.

    Information noteNote: You can right-click a routine or a custom routine jar to use the Impact Analysis feature. This feature indicates which Jobs use the routine or the custom routine jar and would therefore be impacted by any modification. For further information about Impact Analysis, see Analyzing repository items.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!