Scenario 2: Modifying the rule file manually to code the conditions you want to use
to create a survivor
This scenario applies only to a subscription-based Talend Platform solution or Talend Data Fabric.
In a Job, the tRuleSurvivorship component generates a
survivorship rule package based on the conditions you define in the Rule table in the component Basic
settings view.
If you want the rule to survive records based on some more advanced criteria, you must
manually code the conditions in the rule using the Drools language.
The Job in this scenario gives an example about how to modify the code in the rule
generated by the component to use specific conditions to create a survivor. Later, you
can use this survivor, for example, to create a master copy of data for MDM.
The components used in this Job are:
-
tFixedFlowInput: it provides the input data
to be processed by this Job. -
tRuleSurvivorship: it creates the survivor
validation flow based on the conditions you code in the rule. This component
selects the best-of-breed data that composes the single representation of each
duplicate group. -
tLogRow: it shows the result of the Job
execution.