Configuring the components and connections - Cloud - 8.0

Splitter (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) > Splitter components (Mediation)
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)
Last publication date
2024-02-21

Procedure

  1. Double-click the cBeanRegister component labeled appendAggregator to display its Basic settings view in the Component tab.
  2. In the Id field, enter "appendAggregator". Select the Simple option and in the Class Name field, enter the name of the predefined Java bean, beans.AppendAggregator in this scenario, which will be called later by the cSplitter component.
  3. Double-click the cTimer component labeled Starter to display its Basic settings view in the Component tab.
  4. In the Repeat field, enter 1 to trigger the message exchange. Keep the default settings of the other options.
  5. Double-click the cSetbody component labeled Set_body to display its Basic settings view in the Component tab.
  6. Select SIMPLE in the Language list and enter "thing1, thing2, thing3" in the Expression field as the message body.
  7. Configure the cSetbody component labeled Set_new_body in the same way to set new body to the sub-messages. In the Expression field, enter *** SPLIT: ${body} to add *** SPLIT: before the old message body.
  8. Double-click the cSplitter component to display its Basic settings view in the Component tab.
  9. In this use case, we want to split the message body into sub-messages using , as the separator.
    Select Simple in the Language list and enter ${body} in the Expression field.
    Select the Use Strategy check box. In the Strategy field, enter the Id of the preregistered Java bean appendAggregator, which will be used to aggregate the replies from sub-messages.
  10. Double-click the cDirect component labeled directA_sender to display its Basic settings view in the Component tab.
  11. Click [...] and select the directA_receiver node to receive the sub-messages.
  12. Double-click the cDirect component labeled directA_receiver to display its Basic settings view in the Component tab.
  13. In the Name field, type in "directA" to identify this endpoint.
  14. Keep the default settings of the cLog components labeled Log_Finished and Log_Split. Log_Finished will log the aggregated replies from sub-messages. Log_Split will log the sub-messages.
  15. Press Ctrl+S to save your Route.