SlideShare a Scribd company logo
1 of 8
How to use Splitter Component
21-12-2014
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

What's hot

Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in MuleKhan625
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in muleRajkattamuri
 
File component in mule
File component in muleFile component in mule
File component in muleRajkattamuri
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in MuleMohammed246
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in muleKhan625
 
Choice component in mule
Choice component in mule Choice component in mule
Choice component in mule Rajkattamuri
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mulejaveed_mhd
 
For each component in mule
For each component in muleFor each component in mule
For each component in muleRajkattamuri
 
File component in mule demo
File component in mule demoFile component in mule demo
File component in mule demoSudha Ch
 
Mule esb
Mule esbMule esb
Mule esbKhan625
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routerskunal vishe
 

What's hot (18)

Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
 
Mule property placeholder
Mule property placeholderMule property placeholder
Mule property placeholder
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
 
How to use processor chain
How to use processor chainHow to use processor chain
How to use processor chain
 
File component in mule
File component in muleFile component in mule
File component in mule
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
 
Mule Message Properties Component
Mule Message Properties ComponentMule Message Properties Component
Mule Message Properties Component
 
Choice component in mule
Choice component in mule Choice component in mule
Choice component in mule
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
 
Sftplite
SftpliteSftplite
Sftplite
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
 
File component in mule demo
File component in mule demoFile component in mule demo
File component in mule demo
 
Mule esb
Mule esbMule esb
Mule esb
 
How to use parse template
How to use parse templateHow to use parse template
How to use parse template
 
Mock component in munit
Mock component in munitMock component in munit
Mock component in munit
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routers
 

Viewers also liked

Viewers also liked (11)

Social Media Tools & Strategies: Final Project
Social Media Tools & Strategies: Final ProjectSocial Media Tools & Strategies: Final Project
Social Media Tools & Strategies: Final Project
 
Lekkere koeken bakken aan de oude molen ...
Lekkere koeken bakken aan de oude molen ...Lekkere koeken bakken aan de oude molen ...
Lekkere koeken bakken aan de oude molen ...
 
Joseph_Ciccone - Aug 2015
Joseph_Ciccone - Aug 2015Joseph_Ciccone - Aug 2015
Joseph_Ciccone - Aug 2015
 
Patentes de invención
Patentes de invenciónPatentes de invención
Patentes de invención
 
конф
конфконф
конф
 
Tan taran tan
Tan taran tanTan taran tan
Tan taran tan
 
Wb mwan 7181 spec sheet
Wb mwan 7181 spec sheetWb mwan 7181 spec sheet
Wb mwan 7181 spec sheet
 
CPI
CPICPI
CPI
 
License to Parent
License to ParentLicense to Parent
License to Parent
 
CV P. Dimitrov
CV P. DimitrovCV P. Dimitrov
CV P. Dimitrov
 
Cancións Entroido
Cancións EntroidoCancións Entroido
Cancións Entroido
 

Similar to How to use splitter component

Message properties component
Message properties component Message properties component
Message properties component Sunil Komarapu
 
Message properties component
Message properties componentMessage properties component
Message properties componentF K
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentSunil Komarapu
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentKhasim Saheb
 
Message properties component in Mule
Message properties component in MuleMessage properties component in Mule
Message properties component in MuleKhan625
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentAnand kalla
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in muleF K
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mulejaveed_mhd
 
Until successful component
Until successful component Until successful component
Until successful component Sunil Komarapu
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentirfan1008
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentPhaniu
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentmdfkhan625
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentprinceirfancivil
 
How to use until successful component
How to use until successful componentHow to use until successful component
How to use until successful componentmaheshtheapex
 

Similar to How to use splitter component (20)

Splitter
SplitterSplitter
Splitter
 
Message properties component
Message properties component Message properties component
Message properties component
 
Message properties component
Message properties componentMessage properties component
Message properties component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
Message properties component in Mule
Message properties component in MuleMessage properties component in Mule
Message properties component in Mule
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Until successful component
Until successful component Until successful component
Until successful component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 
How to use and filter
How to use and filterHow to use and filter
How to use and filter
 
How to use until successful component
How to use until successful componentHow to use until successful component
How to use until successful component
 
How to use not filter
How to use not filterHow to use not filter
How to use not filter
 
How to use or filter
How to use or filterHow to use or filter
How to use or filter
 
Not Filter
Not FilterNot Filter
Not Filter
 
File component
File component File component
File component
 

More from RaviRajuRamaKrishna

More from RaviRajuRamaKrishna (11)

Mock component in munit
Mock component in munitMock component in munit
Mock component in munit
 
Jms selector
Jms selectorJms selector
Jms selector
 
Sftplite
SftpliteSftplite
Sftplite
 
Object store
Object storeObject store
Object store
 
How to use rest component
How to use rest componentHow to use rest component
How to use rest component
 
How to use soap component
How to use soap componentHow to use soap component
How to use soap component
 
How to use salesforce cloud connector
How to use salesforce cloud connectorHow to use salesforce cloud connector
How to use salesforce cloud connector
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
How to use wildcard filter
How to use wildcard filterHow to use wildcard filter
How to use wildcard filter
 
How to use data mapper transformer
How to use data mapper transformerHow to use data mapper transformer
How to use data mapper transformer
 
How to use bean as datasource in database connector
How to use bean as datasource in database connectorHow to use bean as datasource in database connector
How to use bean as datasource in database connector
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

How to use splitter component

  • 1. How to use Splitter Component 21-12-2014
  • 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.