Viewing code and executing the Route

Splitter - Mediation

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Data Services Platform
Talend Open Studio for ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend ESB
Talend Data Fabric
task
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Splitter components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Splitter components (Mediation)
Data Governance > Third-party systems > Routing components (Mediation) > Splitter components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. Click the Code tab at the bottom of the design workspace to have a look at the generated code.
    As shown in the code, the message route is built from one endpoint .to another. The message sent to cSplitter_1 is split by the method .split().simple("${body}") and the replies from the sub-messages are aggregated by the method .aggregationStrategyRef("appendAggregator").
  2. Click the Run view to display it and click the Run button to launch the execution of your Route. You can also press F6 to execute it.
    RESULT: The source message is split into sub-messages using , as the separator and each sub-message is given a new message body. The replies from the sub-messages are aggregated then into a single outgoing message from the cSplitter component.