Testing Triggers in Talend Studio - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29
Available in...

Data Fabric

MDM Platform

Talend Studio allows you to test Triggers to see if one or more Triggers which match the test conditions defined by an event record will be executed as expected.

The event record which is used to test Triggers will be processed by the Event Manager. When the conditions defined in the event record correspond to the execution conditions of a Trigger, the Trigger will be executed.

For synchronous Triggers, the execution results will be returned directly. For asynchronous Triggers, you have to check the log of activity on MDM server to figure out the real status of the execution results.

Before you begin

You have already connected to the MDM server. One or more Triggers to be tested have already been deployed to the MDM server.

Procedure

  1. In the MDM Repository tree view, expand the Event Management and Trigger nodes and then select Test from the contextual menu.
  2. A dialog box opens asking you to select the appropriate server on which the MDM server is installed.
    Once you have made your choice, click OK to close the dialog box.
  3. The Select Record dialog box opens. The selected server is shown in the Server list.
    Select UpdateReport from the Container list.

    The UpdateReport document contains all the event records generated whenever a data record is created, updated or deleted. Each time the Event Manager receives a document, it tries to evaluate the conditions of each Trigger against this document.

    You need to choose one event record to test Triggers.

  4. Click the icon next to the Entity list to display a list of records.
  5. If required, define conditions in the Record Search area to filter the records to be displayed. For example, you can select a specific time in the From and To fields respectively to display only the records generated during that period of time.
  6. Click the desired record to display its content in the Record Content area.
    If needed, you can create a new record to be used for testing Triggers.
  7. Click Test. A prompt message pops up, showing that one or more Triggers which match the conditions of the selected event record are executed successfully.
  8. To verify the execution results of those Triggers, consult the mdm.log file in one of the following ways:
    • In the Server Explorer panel, right-click the connection to the server where MDM server is installed, and then click View Server Log. A Console opens displaying the most recent contents of the mdm.log file.
    • You can also view the contents of the mdm.log file in a browser.
    • If you have direct access to the MDM server, you can also consult the file directly in the <$INSTALLDIR>/log directory.