You can display the properties of a connection by selecting it and clicking the Component view tab, or by right-clicking the connection and selecting Settings from the contextual menu. This section summarizes connection property settings.
The Basic settings vertical tab of the Component view of the connection displays the schema of the data flow handled by the connection. You can change the schema by clicking the Edit schema button. For more information, see How to set a built-in schema in a Job.
The Advanced settings vertical tab lets you monitor the data flow over the connection in a Job without using a separate tFlowMeter component. The measured information will be interpreted and displayed in a monitoring tool such Talend Activity Monitoring Console (available with Talend subscription-based products).
To monitor the data over the connection, perform the following settings in the Advanced settings vertical tab:
Select the Monitor this connection check box.
From the Mode list, select Absolute to log the actual number of rows passes over the connection, or Relative to log the ratio (%) of the number of rows passed over this connection against a reference connection. If you select Relative, you need to select a reference connection from the Connections List list.
Click the plus button to add a line in the Thresholds table and define a range of the number of rows to be logged.
For more information about flow metrics, see the documentation of tFlowMeterCatcher at https://help.talend.com.
When you configure an Iterate connection, you are actually enabling parallel iterations. For further information, see How to launch parallel iterations to read data.
In the Basic settings view of a Run if connection, you can set the condition to the subJob in Java.
You can use variables in your condition. Pressing Ctrl+Space allows you to access all global and context variables. For more information, see How to use variables in a Job.
When adding a comment after the condition, be sure to enclose it between /* and */ even if it is a single-line comment.
In the following example, a message is triggered if the input file contains 0 rows of data.
Create a Job and drop three components to the design workspace: a tFileInputDelimited, a tLogRow, and a tMsgBox.
Connect the components as follows:
Right-click the tFileInputDelimited component, select Row > Main from the contextual menu, and click the tLogRow component.
Right-click the tFileInputDelimited component, select Trigger > Run if from the contextual menu, and click the tMsgBox component.
Configure the tFileInputDelimited component so that it reads a file that contains no data rows.
Select the Run if connection between the tFileInputDelimited component and the tMsgBox component, and click the Component view. In the Condition field on the Basic settings tab, pressing Ctrl+Space to access the variable list, and select the NB_LINE variable of the tFileInputDelimited component. Edit the condition as follows:
Go to the Component view of the tMsgBox component, and enter a message, "No data is read from the file" for example, in the Message field.
Save and run the Job. You should see the message you defined in the tMsgBox component.