Skip to main content Skip to complementary content

tRules Standard properties

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.

For more information, see the Business rules usage in tRules .

DRL/XLS FILE

Available when Built-in is selected.

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.

Information noteNote:

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 more information about variables, see Using contexts and variables.

Usage

Usage rule

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

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 – please let us know!