SlideShare a Scribd company logo
Splitter
Abstract
 The main motto of this PPT is How to use
Splitter Component in our applications.
Introduction
 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 aCollection 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.
Example
.mflow
 <?xml version="1.0" encoding="UTF-8"?>
 <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-
beans-current.xsd
 http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
 http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
 <flow name="SplitterPOCFlow1" doc:name="SplitterPOCFlow1">
 <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="SplitterPOC"
doc:name="HTTP"/>
 <logger message="--Entered into the flow" level="INFO" doc:name="Logger"/>
 <set-payload value="&lt;shiporder xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
orderid=&quot;555-66-7777&quot;&gt; &lt;orderperson&gt;Derek Adams&lt;/orderperson&gt; &lt;shipto&gt;
&lt;name&gt;Azaz Desai&lt;/name&gt; &lt;address&gt;123 Test Drive&lt;/address&gt; &lt;city&gt;Ahmedabad&lt;/city&gt;
&lt;country&gt;India&lt;/country&gt; &lt;/shipto&gt; &lt;item&gt; &lt;title&gt;Laptop&lt;/title&gt; &lt;note&gt;Some piece
of Mac crap!&lt;/note&gt; &lt;quantity&gt;1&lt;/quantity&gt; &lt;price&gt;99.97&lt;/price&gt; &lt;/item&gt; &lt;item&gt;
&lt;title&gt;Memory Chips&lt;/title&gt; &lt;note&gt;1 GB&lt;/note&gt; &lt;quantity&gt;4&lt;/quantity&gt;
&lt;price&gt;49.99&lt;/price&gt; &lt;/item&gt; &lt;/shiporder&gt;" doc:name="Set Payload"/>
 <splitter enableCorrelation="ALWAYS" expression="#[xpath:shiporder/item/title]" doc:name="Splitter"/>
 <logger message="--After Splitter #[payload]" level="INFO" doc:name="Logger"/>
 </flow>
 </mule>
 Output:
INFO 2015-12-21 11:23:06,695 [[SplitterPOC].config.change.2.thread.1]
org.mule.DefaultMuleContext:
**********************************************************************
* Application: SplitterPOC *
* OS encoding: Cp1252, Mule encoding: UTF-8 *
* *
* Agents Running: *
* Clustering Agent *
* JMX Agent *
**********************************************************************
INFO 2015-12-21 11:23:06,696 [[SplitterPOC].config.change.2.thread.1]
org.mule.module.launcher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'SplitterPOC' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-12-21 11:23:13,044 [[SplitterPOC].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --Entered into the flow
INFO 2015-12-21 11:23:13,124 [[SplitterPOC].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --After Splitter Laptop
INFO 2015-12-21 11:23:13,127 [[SplitterPOC].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --After Splitter Memory Chips
 Flow of execution:
1. URL to trigger the service from browser
http://localhost:8089/SplitterPOC
2.Splitter component splits the input request based on the
given expression and displays the results in Console.
References
 https://docs.mulesoft.com/mule-user-
guide/v/3.7/splitter-flow-control-reference

More Related Content

PPTX
PPTX
Wildcard Filter
PPTX
How to use data mapper transformer
PPTX
Message properties component in Mule
PPTX
How to use message properties component
PPTX
Message properties component in mule
PPTX
How to use data mapper transformer
PPTX
Message properties component in mule demo
Wildcard Filter
How to use data mapper transformer
Message properties component in Mule
How to use message properties component
Message properties component in mule
How to use data mapper transformer
Message properties component in mule demo

What's hot (11)

PPTX
Expression filter in Mule
PPTX
Basic example using for each component
PPTX
Expression filter in Mule
PPTX
Validate json schema
PPTX
How to use splitter component
PPTX
Collection aggregator
PPTX
Filter expression in mule demo
PPTX
How to use processor chain
PPTX
Property place holder
PPTX
Defining global exception strategies
PPTX
Message properties component in mule
Expression filter in Mule
Basic example using for each component
Expression filter in Mule
Validate json schema
How to use splitter component
Collection aggregator
Filter expression in mule demo
How to use processor chain
Property place holder
Defining global exception strategies
Message properties component in mule
Ad

Viewers also liked (20)

PPTX
Bean as Datasource
PPTX
Cloud hub deployment
PPTX
Securing api with_o_auth2
PPTX
Dockerizing mule soft esb
PPTX
Integrate mule esb with microsoft office 365 share point
PPTX
Specifying a default exception strategy
PPTX
How to use parse template
PPTX
PPTX
Reference exception strategy
PPTX
PPTX
PPTX
Synchronous communication using jms back channel
PPTX
Setting up organization with api access
PPTX
Deployment options for mule applications
PPTX
How to use attachment transformer
PPTX
Mule esb with amazon s3 Integration
PPTX
PPTX
PPTX
How to use secure property placeholder
Bean as Datasource
Cloud hub deployment
Securing api with_o_auth2
Dockerizing mule soft esb
Integrate mule esb with microsoft office 365 share point
Specifying a default exception strategy
How to use parse template
Reference exception strategy
Synchronous communication using jms back channel
Setting up organization with api access
Deployment options for mule applications
How to use attachment transformer
Mule esb with amazon s3 Integration
How to use secure property placeholder
Ad

Similar to Splitter (20)

PPTX
How to use splitter component
PPTX
Splitter flow control reference
PPTX
Routing in mule
PPT
Parallel processing for splitter in mule esb
PPTX
Types of MessageRouting in Mule
PPTX
Splitting with mule
PPTX
Mule Splitter Flow Control Reference
PPTX
Splitters in mule
PPTX
Splitting with mule part2
PPTX
Controlling Message Flow - Mule ESB
PPTX
Controlling message flow
PPTX
Mule splitters
PPTX
M filtering
PPTX
Routing and filters
PDF
Mulesoft Aggregator and Spiltter
PPTX
Mule routing and filters
PPTX
How to use expression filter
PPTX
Routing in mule
PPTX
Mule splitters
PPTX
Message enricher in mule
How to use splitter component
Splitter flow control reference
Routing in mule
Parallel processing for splitter in mule esb
Types of MessageRouting in Mule
Splitting with mule
Mule Splitter Flow Control Reference
Splitters in mule
Splitting with mule part2
Controlling Message Flow - Mule ESB
Controlling message flow
Mule splitters
M filtering
Routing and filters
Mulesoft Aggregator and Spiltter
Mule routing and filters
How to use expression filter
Routing in mule
Mule splitters
Message enricher in mule

More from sivachandra mandalapu (11)

PPTX
Mock component in munit
PPTX
Jms selector
PPTX
PPTX
Object store
PPTX
How to use SFTP
PPTX
API gateway setup
PPTX
Soap Component
PPTX
Rest Component
PPTX
Integration with dropbox using mule esb
PPTX
Integration of mule esb with microsoft azure
PPTX
Mock component in munit
Jms selector
Object store
How to use SFTP
API gateway setup
Soap Component
Rest Component
Integration with dropbox using mule esb
Integration of mule esb with microsoft azure

Recently uploaded (20)

PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PDF
Basic Mud Logging Guide for educational purpose
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Cell Types and Its function , kingdom of life
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Classroom Observation Tools for Teachers
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Structure & Organelles in detailed.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
O5-L3 Freight Transport Ops (International) V1.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pre independence Education in Inndia.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
Basic Mud Logging Guide for educational purpose
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Insiders guide to clinical Medicine.pdf
PPH.pptx obstetrics and gynecology in nursing
Cell Types and Its function , kingdom of life
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Module 4: Burden of Disease Tutorial Slides S2 2025
O7-L3 Supply Chain Operations - ICLT Program
Classroom Observation Tools for Teachers
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Structure & Organelles in detailed.

Splitter

  • 2. Abstract  The main motto of this PPT is How to use Splitter Component in our applications.
  • 3. Introduction  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 aCollection 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.
  • 5. .mflow  <?xml version="1.0" encoding="UTF-8"?>  <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring- beans-current.xsd  http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd  http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">  <flow name="SplitterPOCFlow1" doc:name="SplitterPOCFlow1">  <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="SplitterPOC" doc:name="HTTP"/>  <logger message="--Entered into the flow" level="INFO" doc:name="Logger"/>  <set-payload value="&lt;shiporder xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; orderid=&quot;555-66-7777&quot;&gt; &lt;orderperson&gt;Derek Adams&lt;/orderperson&gt; &lt;shipto&gt; &lt;name&gt;Azaz Desai&lt;/name&gt; &lt;address&gt;123 Test Drive&lt;/address&gt; &lt;city&gt;Ahmedabad&lt;/city&gt; &lt;country&gt;India&lt;/country&gt; &lt;/shipto&gt; &lt;item&gt; &lt;title&gt;Laptop&lt;/title&gt; &lt;note&gt;Some piece of Mac crap!&lt;/note&gt; &lt;quantity&gt;1&lt;/quantity&gt; &lt;price&gt;99.97&lt;/price&gt; &lt;/item&gt; &lt;item&gt; &lt;title&gt;Memory Chips&lt;/title&gt; &lt;note&gt;1 GB&lt;/note&gt; &lt;quantity&gt;4&lt;/quantity&gt; &lt;price&gt;49.99&lt;/price&gt; &lt;/item&gt; &lt;/shiporder&gt;" doc:name="Set Payload"/>  <splitter enableCorrelation="ALWAYS" expression="#[xpath:shiporder/item/title]" doc:name="Splitter"/>  <logger message="--After Splitter #[payload]" level="INFO" doc:name="Logger"/>  </flow>  </mule>
  • 6.  Output: INFO 2015-12-21 11:23:06,695 [[SplitterPOC].config.change.2.thread.1] org.mule.DefaultMuleContext: ********************************************************************** * Application: SplitterPOC * * OS encoding: Cp1252, Mule encoding: UTF-8 * * * * Agents Running: * * Clustering Agent * * JMX Agent * ********************************************************************** INFO 2015-12-21 11:23:06,696 [[SplitterPOC].config.change.2.thread.1] org.mule.module.launcher.MuleDeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'SplitterPOC' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2015-12-21 11:23:13,044 [[SplitterPOC].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --Entered into the flow INFO 2015-12-21 11:23:13,124 [[SplitterPOC].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --After Splitter Laptop INFO 2015-12-21 11:23:13,127 [[SplitterPOC].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --After Splitter Memory Chips
  • 7.  Flow of execution: 1. URL to trigger the service from browser http://localhost:8089/SplitterPOC 2.Splitter component splits the input request based on the given expression and displays the results in Console.