tRules properties - 6.1

Talend Components Reference Guide

EnrichVersion
6.1
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance
Data Quality and Preparation
Design and Development

Component family

Processing

 

Function

tRules allows you to apply one or more business rules on a data flow in order to output only relevant data.

Purpose

tRules allows you to use business rules defined in a Drools file of .xls or .drl format in order to filter data.

Basic settings

Property type

Either Built-in or Repository.

Since version 5.6, both the Built-In mode and the Repository mode are available in any of the Talend solutions.

 

 

Built-in: No property data stored centrally.

 

 

Repository: Select the repository file where properties are stored. The fields that come after are pre-filled in using the fetched data.

 

DRL/XLS FILE

Browse to the Drools or Excel file that holds the business rules you want to use in your Job.

You can use business rules stored in external files or create business rules of DRL format from within Talend Studio. The example scenarios of this component represent the two cases.

 

Outputs

Set the business rules to use on the output data.

Schema: Create/select the output schema.

Rule: Create/select the business rule to use on the corresponding output schema.

Note

The import field in the code of a rule file needs to correspond to the current project name.

For more information on creating business rules, see the Drools documentation in the following site: http://www.jboss.org/drools/documentation.html

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a Job level as well as at each component level.

Global Variables

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

NB_LINE: the number of rows read by an input component or transferred to an output component. This is an After variable and it returns an integer.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio User Guide.

Usage

This component is an intermediate component in a data flow. It needs input and output components.

Limitation

n/a