Viewing code and executing the Route - 7.1

SetBody - Mediation

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Mediation) > SetBody components (Mediation)
Data Quality and Preparation > Third-party systems > Processing components (Mediation) > SetBody components (Mediation)
Design and Development > Third-party systems > Processing components (Mediation) > SetBody 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.
    In this partially shown code, a message route is built from one endpoint .to another, and while in routing, the content of each message is replaced according to the condition .xpath("/people/person") by "cSetBody_1".
  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 XML files are sent to the receiver, where person has become the root element of each file.