# tRouteInput

Accepts messages in a Data Integration Job from a Mediation Route.

## tRouteInput Standard properties

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

Information noteWarning: It is not supported to use tRouteInput in Joblets.

The Standard tRouteInput component belongs to the ESB family.

*This component is relevant only when used with one of the Talend solutions with ESB, as it should be used with the Service Repository node and the Data Service creation related wizard(s).*

## Basic settings

| Properties | Description |
| --- | --- |
| Input Schema and Edit<br>schema | <ul> <li> <p>A schema is a row description. It defines the number of fields            (columns) to be processed and passed on to the next component. When you create a Spark            Job, avoid the reserved word <kbd>line</kbd> when naming the            fields.</p> <p>Click <span>Edit        schema</span> to make changes to the schema. If the current schema is of the <span>Repository</span> type, three options are available:</p> <ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> </li> <li> <p> <span>Built-in</span>: No property data stored								centrally. </p> </li> <li> <p> <span>Repository</span>: Select the Repository								file where Properties are stored. </p> </li> </ul> |
| Camel | Enter the message parameters corresponding to the columns you<br>defined in the schema dialog box via the Edit<br>schema button using the Simple Expression<br>Language.<br><br>For more information about the Simple Expression Language, see the<br>site http://camel.apache.org/simple.html. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a<br>Job level as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>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<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component can be used as starter component and has an<br>output. It is mandatory that a tRouteInput component is used in the Data Integration Job to be<br>called by a Route using the cTalendJob<br>component. The reason for it is that this will prevent the referenced Job from<br>starting automatically when deployed in Talend Runtime. Instead it will only start when it gets called by the Route.<br><br>For more information about how to use the cTalendJob component, see [cTalendJob](https://help.qlik.com/talend/r/en-US/8.0/route). |
| Limitation | The Job using a tRouteInput must<br>be launched only within a Route using the cTalendJob component. |

**Related concepts**

* [Exchanging messages between a Job and a Route](https://help.qlik.com/talend/en-US/components/8.0/route/troutefault-trouteinput-trouteinput-exchanging-messages-between-job-and-route-standard-component-esb-this)
* [Exchanging messages between a Job and a Route](https://help.qlik.com/talend/en-US/components/8.0/route/trouteoutput-trouteinput-tlogrow-treplace-exchanging-messages-between-job-and-route-standard-component-esb-this)

**Related tasks**

* [Using shared Data Sources with DB components in Jobs with tRouteInput](https://help.qlik.com/talend/en-US/components/8.0/route/how-to-use-shared-datada-sources-with-db-components "This scenario describes the usage of Data Sources with DB components in Jobs containing tRouteInput, which can be started only from a Route using the cTalendJob component.")