
Warning
This component is available only to users of Talend Studio with ESB.
Component family |
ESB/Route |
|
Function |
tRouteInput accepts messages from |
|
Purpose |
tRouteInput allows you to |
|
Basic settings |
Input Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Click Edit schema to make changes to the schema. If the
|
|
|
Built-in: No property data stored |
|
|
Repository: Select the Repository |
|
Camel |
Enter the message parameters corresponding to the columns you For more information about the Simple Expression Language, see the |
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component can be used as starter component and has an |
|
Limitation |
The Job using a tRouteInput must |
This scenario describes how to accept messages from a Route using the tRouteInput component. To do this, we need to build a Job to
accept the message and a Route to send the message and call the Job using the cTalendJob component.
For more information about how to use the Mediation components, see Talend ESB Mediation Components Reference Guide.
In this section, we will build a Job named RouteCommunication
to accept the message from a Route.

-
Drag and drop a tRouteInput and a
tLogRowfrom the Palette onto the design workspace. -
Right-click the tRouteInput
component, select Row > Main from the contextual menu and click the
tLogRow component.
-
Double-click the tRouteInput
component to open its Basic settings
view in the Component tab. -
Click the three-dot button next to Edit
Schema. In the schema dialog box, click the plus button
to add a new line of String type and
name it body. Click OK to close the dialog box. -
In the Simple Expression field for
the body element, enter"${in.body}"
to get the body of the input message from the Route. -
The tLogRow component will monitor
the message exchanges and does not need any configuration. -
Press Ctrl+S to save your Job.
In this section, we will switch to the Mediation
perspective and create a Route to send the message to the Job.

-
Drag and drop a cMessagingEndpoint, a
cSetBody, and a cTalendJob from the Palette onto the design workspace. -
Link the components with the Row >
Route connection as shown
above. -
Label the components for better identification of their roles.
-
Double-click the cMessagingEndpoint
component to open its Basic settings
view in the Component tab. -
In the URI field, enter
"timer://myTimer?period=2000"
to start message
exchanges every 2000 milliseconds. -
Double click the cSetBody component
to display its Basic settings view in
the Component tab. -
Select Simple from the Language list and enter
Hello!
in the Expression field. -
Double-click the cTalendJob component
to display its Basic settings view in
the Component tab. -
Select Job RouteCommunication from the
repository. -
Press Ctrl+S to save your
Route.