Skip to main content Skip to complementary content
Close announcements banner

Setting the rule schemas

Procedure

  1. In the design workspace, double-click tRules to display its Basic settings view and define the component properties.
    The Property Type is automatically set to Repository as you have already stored the rule template in Talend Studio.
  2. Click the [...] button to open a dialog box that lists the DRL rules stored locally in the repository.
  3. Select the rule template in which you want to define the rule schemas, ZipCodeRuleSet in this example, and then click OK.
  4. Use the [+] button to add two rows to the Outputs table, click in the Schema column and then click the [...] button.
  5. In the open dialog box, set a name for the first output schema, call it Paris, and click OK.
  6. In the open dialog box, define your output schema. Copy zipCode and CityName from the input flow to the output flow and click OK.
  7. Do the same to create a second output schema, call it Suresnes and similarly copy the two input columns to the output flow.
    Each of the two output schemas will use one of the two DRL rules you will define in the rule template.
  8. Right-click tRules and select Row > Paris to link the component to the first tLogRow.
  9. Do the same and link tRules to the second tLogRow using the Row > Suresnes link.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!