The Job in this scenario uses the tDQRules component to
validate data using a validation rule from Qlik Talend Data Integration. This
component is available from Talend Studio 8.0
R2025-06.
The Job uses the following rule:
Setting up the Job
Procedure
Drop the following components from the Palette onto the design workspace:
tFixedFlowInput, tDQRules, and
three tLogRow components.
Using a Main link, connect
tFixedFlowInput to tDQRules
Using the Flow link, connect
tDQRules to a tLogRow.
Using the Not_Applicable link, connect
tDQRules to another
tLogRow.
Using the Reject link, connect
tDQRules to the last
tLogRow.
Configuring the tFixedFlowInput component
Procedure
Double-click tFixedFlowInput to open its Basic
settings view.
Select Built-In as Schema and
click […] next to Edit
schema.
When you update the rule in Qlik Talend Data Integration, click Fetch rules to retrieve the latest
version.
To select the rule, click [...] next to Rule
name.
When no rules or input columns are available, verify that:
The rules have been retrieved in Rule library
timestamp.
The input schema is correct.
Select the rule and click OK to close the window. You can
select one rule only.
Click Refresh table.
Associate the rules variables to the input columns.
You can associate the data types from Talend Studio
with some data types from Qlik Talend Data Integration. For more information, see The operators available in Qlik Talend Data Integration.
Configuring the tLogRow components
Procedure
Double-click the tLogRow components to open their
Basic settings view.
Select Built-in as Schema and
click Sync columns.
In the Mode area, select Table (print values
in cells of a table).
Saving and executing the Job
Procedure
Press F6 to save and execute the Job.
Results
The tLogRow from the Flow link returns
the givers whose blood group is available and ends with + or -, and who are 18 up to 70
years old.
The
tLogRow from the Not_Applicable link
returns the givers whose data cannot be validated by the condition requirement. For
example: The blood group does not end with + or -, or the givers are too young or too old.
The tLogRow from the Reject link returns
the givers who should be marked as givers (true) because
they fulfilled each condition requirement but they are marked as
false.