Deleting unused tasks - 6.4

Data Stewardship Console

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Data Fabric
Talend MDM Platform
task
Data Governance > Third-party systems > MDM components > Data Stewardship Console components
Data Quality and Preparation > Third-party systems > MDM components > Data Stewardship Console components
Design and Development > Third-party systems > MDM components > Data Stewardship Console components
EnrichPlatform
Talend Studio

About this task

The second part of this scenario lets you delete those tasks which are no longer used.

Procedure

  1. Drop a tStewardshipTaskInput component from the Palette onto the workspace. Connect the tFixedFlowInput component called SampleData to the tStewardshipTaskInput component using an OnSubjobOk trigger.
  2. In the tStewardshipTaskInput_1 component, in the Basic settings tab, provide the connection information (Url, User name and Password) for the Data Stewardship Console to which you want to connect, and information about the tasks you want to use as input (Owner, Tag, Start Date and End Date).
    For this scenario, make sure you specify the Tag as tag1.
  3. Drop a tLogRow component from the Palette onto the workspace. Connect the tStewardshipTaskInput_1 component to the new tLogRow component using a Row Main link.
    The tLogRow component is used to monitor data processed.
  4. Drop a tStewardshipTaskDelete component from the Palette onto the workspace. Connect the tStewardshipTaskDelete component to the tStewardshipTaskInput_1 component using an OnSubjobOk trigger.
    The tStewardshipTaskDelete component helps streamline processes by removing tasks that are no longer used or relevant when they match certain criteria.
  5. In the tStewardshipTaskDelete component, in the Basic settings tab, provide the connection information (Url, User name and Password) for the Data Stewardship Console to which you want to connect.
  6. In the Task Configuration area of the Basic settings tab of the tStewardshipTaskDelete component, enter the criteria to use when deciding which tasks to delete. An example is shown in the image below.
  7. Drop a tJava component from the Palette onto the workspace. Connect the tStewardshipTaskDelete component to the tJava component using an OnSubjOk trigger.
    The tJava component makes it possible to extend the functionalities of a Talend Job through using Java commands. In this case, it shows you which tasks are deleted.
  8. In the Basic settings tab of the tJava component, enter the following code:
    System.out.println("---------------:"+((Integer)globalMap.get("tStewardshipTaskDelete_1_DELETED_TASK_NUMBER")));
  9. Press F6 to run your Job and refresh or reopen the Data Stewardship Console to check that your tasks have been deleted.