cMessageRouter Standard properties - Cloud - 8.0

Filter (Mediation)

Version
Cloud
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
Last publication date
2024-02-21

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

The Standard cMessageRouter component belongs to the Routing family.

Usage

Usage rule

cMessageRouter is used as a middle component in a Route. It can only have one input channel but multiple output channels. Messages can be outputted through either a When, Otherwise or Route types of connection.

Connections Row / Route: Select this link to pass on all the messages to the next component.

Trigger / When: Select the When link and click the Component view.

In the Type list, select the type of language you will use to declare your condition from none, bean, constant, correlation, el, groovy, header, sql, jsonpath, jxpath, mvel, ognl, php, property, python, ruby, simple, Spel, sql, xpath, and xquery.

Append endChoice(): If the When link is followed by a cMessageFilter or cLoadBalancer and so on, there will be a compile error. This is because once there is such a component there, the flow type will change from choice() to loadbalance(), which can not be followed by a When or Otherwise link. Select this check box to change the flow type back from loadbalance() to choice().

In the Condition field, type in the condition that will be used to filter the messages.

All the messages that do not match this condition are retrieved with the Otherwise link to a different channel or dropped if an Otherwise link does not present.

Note:

There can be more than one When link in a Route.

 

Trigger / Otherwise: This link automatically retrieves the messages that do not match the When conditions.

Note:

There can be only one Otherwise link, which is optional, in a Route.

Limitation

It is recommended not to put any message handling after the When or the Otherwise link. Always use a Mock/Direct endpoint to replace them and make a new Route to handle the messages.