Mule For Each Scope – Header Collection
• In this slide deck we will see how Foreach processes a
collection in message header
Message Header Collection
Let us write a Mule flow which listens on HTTP Listener and let
us test the flow with below url having a list of query params
http://localhost:8081/foreach-headertest?names=Ram,Amar,Nag
The value of the query parmater “names” is a list of comma
separated values.
We want to process this list using Foreach scope
• Mule HTTP Listener converts query parameters into a
Map. We can access these query parameters using the key
‘http.query.params’
• In our case the query parameter is a comma seperated
values
• We need to convert the comma seperated values to a
List, then we can apply Foreach scope. For this purpose we
nee to write a Java component
The Java component which converts comma seperated
values to a List
We use this Java component in our flow to convert
query parameters to a List
Flow:
We used Java component ‘QueryParamsToList’ immediately
after HTTP Listener to convert query parmas to a List.
Output:
Mule for each scope headerc ollection

More Related Content

PPTX
Mule – header collection
PPTX
Mule for each scope header collection
PPTX
Mule for each scope header collection
PPTX
Header collection
PPTX
Mule ESB - Consuming RESTful WS with RAML Definition
PPTX
Mule tcat server - Server profiles
PPTX
Mulehdfsconnector 160810122655
PPTX
Mule database connector
Mule – header collection
Mule for each scope header collection
Mule for each scope header collection
Header collection
Mule ESB - Consuming RESTful WS with RAML Definition
Mule tcat server - Server profiles
Mulehdfsconnector 160810122655
Mule database connector

What's hot (12)

PPTX
Mule scopes foreach_scope
PPT
Server Load Balancing
DOCX
Example of BDD/scenario based vertical slicing (for PM/PO community)
PPTX
Mule MongoDB connector
PPTX
Http mule
PPTX
Apache Ambari Meetup at Dataworks Summit 2017
PDF
Spring integration
PPT
PPTX
Mule message state
PPTX
Spring integration
PPTX
Bindings of components in mule
PPTX
How to create sitemap for website
Mule scopes foreach_scope
Server Load Balancing
Example of BDD/scenario based vertical slicing (for PM/PO community)
Mule MongoDB connector
Http mule
Apache Ambari Meetup at Dataworks Summit 2017
Spring integration
Mule message state
Spring integration
Bindings of components in mule
How to create sitemap for website
Ad

Viewers also liked (20)

PPT
.Net architecture with mule soft
PPTX
Mule management console installation
PPT
Mule database-connectors
PPTX
Mapping and listing with mule
PPTX
Mule soap
PPTX
Mule esb
PPT
Mule batch processing
PPT
Mule google connectors
PPTX
Github plugin setup in anypointstudio
PPTX
Filter expression in mule
PPTX
File component in mule
PPTX
Dataweave 160103180124
PPTX
Mule integration with linkedin
PPTX
Mule soa
PPTX
Mule esb made system integration easy
 
PPTX
PPTX
Until successful component in mule
PPTX
Message properties component in Mule
PPTX
Junit in mule
 
PPTX
Mule esb soap_service
.Net architecture with mule soft
Mule management console installation
Mule database-connectors
Mapping and listing with mule
Mule soap
Mule esb
Mule batch processing
Mule google connectors
Github plugin setup in anypointstudio
Filter expression in mule
File component in mule
Dataweave 160103180124
Mule integration with linkedin
Mule soa
Mule esb made system integration easy
 
Until successful component in mule
Message properties component in Mule
Junit in mule
 
Mule esb soap_service
Ad

Similar to Mule for each scope headerc ollection (20)

PPTX
EST is a software architectural style that was created to guide the design an...
PDF
Sun certifiedwebcomponentdeveloperstudyguide
DOC
General configurations on apache directives included in the httpd.conf file
PPTX
Raml part 1
PPTX
Data weave (MuleSoft)
PPTX
Rails Request & Middlewares
PPT
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
PPT
Servlet (1) also contains code to create it.ppt
PPT
Servlet.ppt
PPT
Servlet1.ppt
PPT
Servlet.ppt
PPTX
Mule concepts transformers
PPTX
Parameters as a part of body
PPTX
Design API using RAML - basics
PPTX
Mule message enricher
PPTX
Working with data.pptx
ODP
Developing web apps using Erlang-Web
PPT
RAML - The architecture
ODP
EST is a software architectural style that was created to guide the design an...
Sun certifiedwebcomponentdeveloperstudyguide
General configurations on apache directives included in the httpd.conf file
Raml part 1
Data weave (MuleSoft)
Rails Request & Middlewares
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
Servlet (1) also contains code to create it.ppt
Servlet.ppt
Servlet1.ppt
Servlet.ppt
Mule concepts transformers
Parameters as a part of body
Design API using RAML - basics
Mule message enricher
Working with data.pptx
Developing web apps using Erlang-Web
RAML - The architecture

More from Khasim Saheb (20)

PPT
Mule architecture
PPT
Mule anypoint exchange
PPTX
Mule soap
PPTX
Mule soa
PPT
Mule security saml
PPT
Mule security jaas
PPTX
Mule esb stripe
PPT
Mule esb api layer
PPTX
PPTX
Mmc rest api user groups
PPTX
How to use message properties component
PPTX
How to use expression filter
PPTX
Data weave
PPT
Anypoint data gateway
PPTX
Creating dynamic json
PPTX
Converting with custom transforme
PPTX
Caching and invalidating with managed store
PPTX
Cache for community edition
PPTX
Automatic documantation with mule
PPTX
A simple webservice with vm
Mule architecture
Mule anypoint exchange
Mule soap
Mule soa
Mule security saml
Mule security jaas
Mule esb stripe
Mule esb api layer
Mmc rest api user groups
How to use message properties component
How to use expression filter
Data weave
Anypoint data gateway
Creating dynamic json
Converting with custom transforme
Caching and invalidating with managed store
Cache for community edition
Automatic documantation with mule
A simple webservice with vm

Recently uploaded (20)

PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPT
Geologic Time for studying geology for geologist
PPTX
Build Your First AI Agent with UiPath.pptx
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
Architecture types and enterprise applications.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PPTX
Configure Apache Mutual Authentication
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Comparative analysis of machine learning models for fake news detection in so...
sustainability-14-14877-v2.pddhzftheheeeee
Geologic Time for studying geology for geologist
Build Your First AI Agent with UiPath.pptx
Chapter 5: Probability Theory and Statistics
Final SEM Unit 1 for mit wpu at pune .pptx
OpenACC and Open Hackathons Monthly Highlights July 2025
Architecture types and enterprise applications.pdf
1 - Historical Antecedents, Social Consideration.pdf
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
A proposed approach for plagiarism detection in Myanmar Unicode text
Configure Apache Mutual Authentication
A contest of sentiment analysis: k-nearest neighbor versus neural network
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Module 1.ppt Iot fundamentals and Architecture
Enhancing plagiarism detection using data pre-processing and machine learning...
Microsoft Excel 365/2024 Beginner's training
The influence of sentiment analysis in enhancing early warning system model f...
Consumable AI The What, Why & How for Small Teams.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Comparative analysis of machine learning models for fake news detection in so...

Mule for each scope headerc ollection

  • 1. Mule For Each Scope – Header Collection
  • 2. • In this slide deck we will see how Foreach processes a collection in message header
  • 3. Message Header Collection Let us write a Mule flow which listens on HTTP Listener and let us test the flow with below url having a list of query params http://localhost:8081/foreach-headertest?names=Ram,Amar,Nag The value of the query parmater “names” is a list of comma separated values. We want to process this list using Foreach scope
  • 4. • Mule HTTP Listener converts query parameters into a Map. We can access these query parameters using the key ‘http.query.params’ • In our case the query parameter is a comma seperated values • We need to convert the comma seperated values to a List, then we can apply Foreach scope. For this purpose we nee to write a Java component
  • 5. The Java component which converts comma seperated values to a List We use this Java component in our flow to convert query parameters to a List
  • 6. Flow: We used Java component ‘QueryParamsToList’ immediately after HTTP Listener to convert query parmas to a List. Output: