tRules Standard properties - 7.1

Business rules

author
Talend Documentation Team
EnrichVersion
7.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 Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Integration) > Business rules components
Data Quality and Preparation > Third-party systems > Processing components (Integration) > Business rules components
Design and Development > Third-party systems > Processing components (Integration) > Business rules components
EnrichPlatform
Talend Studio

These properties are used to configure tRules running in the Standard Job framework.

The Standard tRules component belongs to the Processing family.

The component in this framework is available in all subscription-based Talend products.

Basic settings

Property type

Either Built-In or Repository.

 

Built-In: No property data stored centrally.

 

Repository: Select the repository file where the 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 the Job level as well as at each component level.

Global Variables

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

Usage rule

This component is usually used as an intermediate component, and it requires an input component and an output component.