SlideShare a Scribd company logo
1 of 7
Splitter Flow Control Reference
in Mulesoft
• The Splitter Flow Control splits a message into
separate fragments, then sends these
fragments one at a time to the next message
processor in the flow. Segments are identified
based on an expression parameter, usually
written in Mule Expression Language (MEL),
but other formats can be employed also. You
can then use a Collection Aggregator Flow
Control to reassemble the parts of the original
message.
• You can also include a Resequencer Flow Control
to put the parts back into the original sequence in
case they are shuffled out of order.
• Splitting and aggregating the message is
especially useful when you intend to process the
split parts in asynchronous flows running on
separate servers. Together, the splitter and
aggregator flow controls allow you to share the
workload among several servers and still be able
to reassemble the message after it's processed.
• Splitter Configuration
• Simple Splitter
• Advanced Splitter Including a Child Element
• Basic Splitter Example
• Full Example Code
• Aggregating the Payload
• Aggregator Configuration
• Simple Collection Aggregator
• Advanced Collection Aggregator Including a Child
Element
• Example Splitting and Aggregating with
Asynchronous Flows
• Full Example Code
• Example Reordering Before Aggregating
• Full Example Code
Aggregating the Payload
• When the splitter splits a message, it adds three
new outbound variables into each of the output
fragments. These three variables are later used by
the Aggregator to reassemble the message:
• MULE_CORRELATION_GROUP_SIZE: number of
fragments into which the original message was split
• MULE_CORRELATION_SEQUENCE: position of a
fragment within the group
• MULE_CORRELATION_ID: single ID for entire group (all
output fragments of the same original message share
the same value)
• <flow name="splitterFlow1" doc:name="splitterFlow1">
• <http:listener config-ref="HTTP_Listener_Configuration" path="gettweets"
doc:name="HTTP"/>
• <splitter expression="#[xpath3('//actor')]" doc:name="Splitter"/>
• <vm:outbound-endpoint exchange-pattern="one-way" path="step2"
doc:name="VM"/>
• </flow>
• <flow name="splitterFlow2" doc:name="splitterFlow2">
• <vm:inbound-endpoint exchange-pattern="one-way" path="step2"
doc:name="VM"/>
• <logger level="INFO" doc:name="Logger" message="#[payload]"/>
• <resequencer failOnTimeout="true" doc:name="Resequencer"/>
• <logger message="#[payload]" level="INFO" doc:name="Logger"/>
• <collection-aggregator failOnTimeout="true" doc:name="Collection
Aggregator"/>
• <logger message="#[payload]" level="INFO" doc:name="Logger"/>
• </flow>

More Related Content

What's hot

Mule database connector
Mule database connectorMule database connector
Mule database connectorAnkush Sharma
 
Mule Collection Splitter
Mule Collection SplitterMule Collection Splitter
Mule Collection SplitterAnkush Sharma
 
Mule Resequencer Filter
Mule Resequencer FilterMule Resequencer Filter
Mule Resequencer FilterAnkush Sharma
 
Mule Schema Validation Filter
Mule Schema Validation FilterMule Schema Validation Filter
Mule Schema Validation FilterAnkush Sharma
 
Mule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_muleMule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_mulekunal vishe
 
Mule servlet connector
Mule servlet connectorMule servlet connector
Mule servlet connectorAnkush Sharma
 
Mule Microsoft Service Bus
Mule Microsoft Service BusMule Microsoft Service Bus
Mule Microsoft Service BusAnkush Sharma
 
Mule Expression Transformer
Mule Expression TransformerMule Expression Transformer
Mule Expression TransformerAnkush Sharma
 
Mule expression component
Mule expression componentMule expression component
Mule expression componentKarnam Karthik
 
Mule flow processing strategies
Mule flow processing strategiesMule flow processing strategies
Mule flow processing strategiesD.Rajesh Kumar
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategieshimajareddys
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routerskunal vishe
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategychetan singhal
 
Java Components and their applicability in Mule Anypoint Studio
Java Components and their applicability in Mule Anypoint StudioJava Components and their applicability in Mule Anypoint Studio
Java Components and their applicability in Mule Anypoint StudioVenkataNaveen Kumar
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mulejaveed_mhd
 

What's hot (20)

Mule database connector
Mule database connectorMule database connector
Mule database connector
 
Mule Collection Splitter
Mule Collection SplitterMule Collection Splitter
Mule Collection Splitter
 
Mule file connector
Mule file connectorMule file connector
Mule file connector
 
Mule Resequencer Filter
Mule Resequencer FilterMule Resequencer Filter
Mule Resequencer Filter
 
Mule Schema Validation Filter
Mule Schema Validation FilterMule Schema Validation Filter
Mule Schema Validation Filter
 
Mule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_muleMule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_mule
 
Mule servlet connector
Mule servlet connectorMule servlet connector
Mule servlet connector
 
Mule Microsoft Service Bus
Mule Microsoft Service BusMule Microsoft Service Bus
Mule Microsoft Service Bus
 
Mule Expression Transformer
Mule Expression TransformerMule Expression Transformer
Mule Expression Transformer
 
Mule expression component
Mule expression componentMule expression component
Mule expression component
 
Mule flow processing strategies
Mule flow processing strategiesMule flow processing strategies
Mule flow processing strategies
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategies
 
Mule: Java Transformer
Mule: Java TransformerMule: Java Transformer
Mule: Java Transformer
 
Mule Cache Scope
Mule Cache ScopeMule Cache Scope
Mule Cache Scope
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routers
 
Mule Batch Commit
Mule Batch CommitMule Batch Commit
Mule Batch Commit
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategy
 
Java Components and their applicability in Mule Anypoint Studio
Java Components and their applicability in Mule Anypoint StudioJava Components and their applicability in Mule Anypoint Studio
Java Components and their applicability in Mule Anypoint Studio
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 

Viewers also liked

Collection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBCollection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBKiran Boddepalli
 
Veekshanam 04 april 2015
Veekshanam 04 april 2015Veekshanam 04 april 2015
Veekshanam 04 april 2015Prudhvi Azad
 
Guy Kawasaki - Hindsights 1.0
Guy Kawasaki - Hindsights 1.0Guy Kawasaki - Hindsights 1.0
Guy Kawasaki - Hindsights 1.0Jason Werner
 
Comenius bilateral 201315 21 st century citizens student´s work2
Comenius bilateral 201315 21 st century citizens student´s work2Comenius bilateral 201315 21 st century citizens student´s work2
Comenius bilateral 201315 21 st century citizens student´s work2profesorjulioperez
 
Global Investment Diamond Summit Executive Summary & Agenda
Global Investment Diamond Summit Executive Summary & AgendaGlobal Investment Diamond Summit Executive Summary & Agenda
Global Investment Diamond Summit Executive Summary & Agendajessicaambrec
 
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge kellyrowan
 
ค่าเป้าหมายปฐมวัย ปี 2558
ค่าเป้าหมายปฐมวัย ปี 2558ค่าเป้าหมายปฐมวัย ปี 2558
ค่าเป้าหมายปฐมวัย ปี 2558Sangdao Phrommat
 
The growth of impact damage - thesis
The growth of impact damage - thesisThe growth of impact damage - thesis
The growth of impact damage - thesisHerzl Chai
 
Comenius Bilateral 201315 Presentación plagiarism
Comenius Bilateral 201315 Presentación plagiarismComenius Bilateral 201315 Presentación plagiarism
Comenius Bilateral 201315 Presentación plagiarismprofesorjulioperez
 
BID Final Presentation Creastmead V2.6 crews
BID Final Presentation Creastmead V2.6 crewsBID Final Presentation Creastmead V2.6 crews
BID Final Presentation Creastmead V2.6 crewsRobert Tilley
 

Viewers also liked (20)

Collection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBCollection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESB
 
Mule parsing with json part2
Mule parsing with json part2Mule parsing with json part2
Mule parsing with json part2
 
Mule parsing with json
Mule parsing with jsonMule parsing with json
Mule parsing with json
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Json to json transformation in mule
Json to json transformation in muleJson to json transformation in mule
Json to json transformation in mule
 
Veekshanam 04 april 2015
Veekshanam 04 april 2015Veekshanam 04 april 2015
Veekshanam 04 april 2015
 
KN brchure-8.5x11FINAL
KN brchure-8.5x11FINALKN brchure-8.5x11FINAL
KN brchure-8.5x11FINAL
 
Guy Kawasaki - Hindsights 1.0
Guy Kawasaki - Hindsights 1.0Guy Kawasaki - Hindsights 1.0
Guy Kawasaki - Hindsights 1.0
 
Umesh Resume
Umesh Resume Umesh Resume
Umesh Resume
 
Comenius bilateral 201315 21 st century citizens student´s work2
Comenius bilateral 201315 21 st century citizens student´s work2Comenius bilateral 201315 21 st century citizens student´s work2
Comenius bilateral 201315 21 st century citizens student´s work2
 
Global Investment Diamond Summit Executive Summary & Agenda
Global Investment Diamond Summit Executive Summary & AgendaGlobal Investment Diamond Summit Executive Summary & Agenda
Global Investment Diamond Summit Executive Summary & Agenda
 
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge
How to Transfer iPhone Data to Galaxy Note 3/4/5/Edge
 
ค่าเป้าหมายปฐมวัย ปี 2558
ค่าเป้าหมายปฐมวัย ปี 2558ค่าเป้าหมายปฐมวัย ปี 2558
ค่าเป้าหมายปฐมวัย ปี 2558
 
The growth of impact damage - thesis
The growth of impact damage - thesisThe growth of impact damage - thesis
The growth of impact damage - thesis
 
Library Annual Report
Library Annual ReportLibrary Annual Report
Library Annual Report
 
IBM
IBMIBM
IBM
 
review 2014-2015
review 2014-2015review 2014-2015
review 2014-2015
 
Comenius Bilateral 201315 Presentación plagiarism
Comenius Bilateral 201315 Presentación plagiarismComenius Bilateral 201315 Presentación plagiarism
Comenius Bilateral 201315 Presentación plagiarism
 
BID Final Presentation Creastmead V2.6 crews
BID Final Presentation Creastmead V2.6 crewsBID Final Presentation Creastmead V2.6 crews
BID Final Presentation Creastmead V2.6 crews
 
Prog
ProgProg
Prog
 

Similar to Mulesoft Splitter and Aggregator Guide

Similar to Mulesoft Splitter and Aggregator Guide (20)

Mule Splitter Flow Control Reference
Mule Splitter Flow Control ReferenceMule Splitter Flow Control Reference
Mule Splitter Flow Control Reference
 
Mulesoft Aggregator and Spiltter
Mulesoft Aggregator and SpiltterMulesoft Aggregator and Spiltter
Mulesoft Aggregator and Spiltter
 
How to use splitter component
How to use splitter componentHow to use splitter component
How to use splitter component
 
How to use splitter component
How to use splitter componentHow to use splitter component
How to use splitter component
 
Routing in mule
Routing in muleRouting in mule
Routing in mule
 
Types of MessageRouting in Mule
Types of MessageRouting in MuleTypes of MessageRouting in Mule
Types of MessageRouting in Mule
 
M split
M splitM split
M split
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Srilekha mule esb
Srilekha mule esbSrilekha mule esb
Srilekha mule esb
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 
Mule Message Chunk Splitter
Mule Message Chunk SplitterMule Message Chunk Splitter
Mule Message Chunk Splitter
 
Mule esb naveen
Mule esb naveenMule esb naveen
Mule esb naveen
 
Niranjan mule esb
Niranjan mule esbNiranjan mule esb
Niranjan mule esb
 
Muleflowarchitecturepart2
Muleflowarchitecturepart2Muleflowarchitecturepart2
Muleflowarchitecturepart2
 
Splitter
SplitterSplitter
Splitter
 
M filtering
M filteringM filtering
M filtering
 
Mule esb kranthi
Mule esb kranthiMule esb kranthi
Mule esb kranthi
 
Mule esb kranthi
Mule esb kranthiMule esb kranthi
Mule esb kranthi
 
Mule esb
Mule esb Mule esb
Mule esb
 
Mule
MuleMule
Mule
 

More from Krishna_in

Validations module
Validations moduleValidations module
Validations moduleKrishna_in
 
Mule maven Plugin
Mule maven PluginMule maven Plugin
Mule maven PluginKrishna_in
 
Scatter gather flow control
Scatter gather flow controlScatter gather flow control
Scatter gather flow controlKrishna_in
 
Choice flow control reference
Choice flow control referenceChoice flow control reference
Choice flow control referenceKrishna_in
 
Soa(service oriented architecture)
Soa(service oriented architecture)Soa(service oriented architecture)
Soa(service oriented architecture)Krishna_in
 
Soa project fundamentals
Soa project fundamentalsSoa project fundamentals
Soa project fundamentalsKrishna_in
 
Soa methodology
Soa methodologySoa methodology
Soa methodologyKrishna_in
 
Soa governance
Soa governanceSoa governance
Soa governanceKrishna_in
 
Principles of soa
Principles of soaPrinciples of soa
Principles of soaKrishna_in
 
Mule transformers
Mule transformersMule transformers
Mule transformersKrishna_in
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategiesKrishna_in
 
Mule components
Mule componentsMule components
Mule componentsKrishna_in
 
Mule agent architecture
Mule agent architectureMule agent architecture
Mule agent architectureKrishna_in
 
Global elements
Global elementsGlobal elements
Global elementsKrishna_in
 
Flows and subflows
Flows and subflowsFlows and subflows
Flows and subflowsKrishna_in
 

More from Krishna_in (20)

Validations module
Validations moduleValidations module
Validations module
 
Mule maven Plugin
Mule maven PluginMule maven Plugin
Mule maven Plugin
 
API Policies
API PoliciesAPI Policies
API Policies
 
Data Weave
Data WeaveData Weave
Data Weave
 
Scatter gather flow control
Scatter gather flow controlScatter gather flow control
Scatter gather flow control
 
Datasense
DatasenseDatasense
Datasense
 
Choice flow control reference
Choice flow control referenceChoice flow control reference
Choice flow control reference
 
Soa(service oriented architecture)
Soa(service oriented architecture)Soa(service oriented architecture)
Soa(service oriented architecture)
 
Soa project fundamentals
Soa project fundamentalsSoa project fundamentals
Soa project fundamentals
 
Soa planning
Soa planningSoa planning
Soa planning
 
Soa methodology
Soa methodologySoa methodology
Soa methodology
 
Soa governance
Soa governanceSoa governance
Soa governance
 
Principles of soa
Principles of soaPrinciples of soa
Principles of soa
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
 
Mule components
Mule componentsMule components
Mule components
 
Mule agent architecture
Mule agent architectureMule agent architecture
Mule agent architecture
 
Message state
Message stateMessage state
Message state
 
Global elements
Global elementsGlobal elements
Global elements
 
Flows and subflows
Flows and subflowsFlows and subflows
Flows and subflows
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Mulesoft Splitter and Aggregator Guide

  • 1. Splitter Flow Control Reference in Mulesoft
  • 2. • The Splitter Flow Control splits a message into separate fragments, then sends these fragments one at a time to the next message processor in the flow. Segments are identified based on an expression parameter, usually written in Mule Expression Language (MEL), but other formats can be employed also. You can then use a Collection Aggregator Flow Control to reassemble the parts of the original message.
  • 3. • You can also include a Resequencer Flow Control to put the parts back into the original sequence in case they are shuffled out of order. • Splitting and aggregating the message is especially useful when you intend to process the split parts in asynchronous flows running on separate servers. Together, the splitter and aggregator flow controls allow you to share the workload among several servers and still be able to reassemble the message after it's processed.
  • 4. • Splitter Configuration • Simple Splitter • Advanced Splitter Including a Child Element • Basic Splitter Example • Full Example Code • Aggregating the Payload
  • 5. • Aggregator Configuration • Simple Collection Aggregator • Advanced Collection Aggregator Including a Child Element • Example Splitting and Aggregating with Asynchronous Flows • Full Example Code • Example Reordering Before Aggregating • Full Example Code
  • 6. Aggregating the Payload • When the splitter splits a message, it adds three new outbound variables into each of the output fragments. These three variables are later used by the Aggregator to reassemble the message: • MULE_CORRELATION_GROUP_SIZE: number of fragments into which the original message was split • MULE_CORRELATION_SEQUENCE: position of a fragment within the group • MULE_CORRELATION_ID: single ID for entire group (all output fragments of the same original message share the same value)
  • 7. • <flow name="splitterFlow1" doc:name="splitterFlow1"> • <http:listener config-ref="HTTP_Listener_Configuration" path="gettweets" doc:name="HTTP"/> • <splitter expression="#[xpath3('//actor')]" doc:name="Splitter"/> • <vm:outbound-endpoint exchange-pattern="one-way" path="step2" doc:name="VM"/> • </flow> • <flow name="splitterFlow2" doc:name="splitterFlow2"> • <vm:inbound-endpoint exchange-pattern="one-way" path="step2" doc:name="VM"/> • <logger level="INFO" doc:name="Logger" message="#[payload]"/> • <resequencer failOnTimeout="true" doc:name="Resequencer"/> • <logger message="#[payload]" level="INFO" doc:name="Logger"/> • <collection-aggregator failOnTimeout="true" doc:name="Collection Aggregator"/> • <logger message="#[payload]" level="INFO" doc:name="Logger"/> • </flow>