SlideShare a Scribd company logo
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 header collection

More Related Content

What's hot (11)

PPT
Server Load Balancing
alluwanted
 
PPTX
Spring cloud config
Shubhani Jain
 
PPTX
Mule connectors-part 1
VirtusaPolaris
 
PPTX
Apache Ambari Meetup - AMS & Grafana
Prajwal Rao
 
PPTX
Mule connectors-session1
Vishnukanth Rachineni
 
PDF
Refresh development from productions
Osama Mustafa
 
PPTX
Ambari metrics system - Apache ambari meetup (DataWorks Summit 2017)
Aravindan Vijayan
 
PDF
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
BIOVIA
 
PPTX
Mule file connector
Ankush Sharma
 
PPTX
Apache Ambari - What's New in 1.4.1
Hortonworks
 
PPTX
How to create sitemap for website
OM Maurya
 
Server Load Balancing
alluwanted
 
Spring cloud config
Shubhani Jain
 
Mule connectors-part 1
VirtusaPolaris
 
Apache Ambari Meetup - AMS & Grafana
Prajwal Rao
 
Mule connectors-session1
Vishnukanth Rachineni
 
Refresh development from productions
Osama Mustafa
 
Ambari metrics system - Apache ambari meetup (DataWorks Summit 2017)
Aravindan Vijayan
 
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
BIOVIA
 
Mule file connector
Ankush Sharma
 
Apache Ambari - What's New in 1.4.1
Hortonworks
 
How to create sitemap for website
OM Maurya
 

Viewers also liked (20)

PPTX
Idempotent filter in mule
Praneethchampion
 
PPTX
Mule flow and filter
Son Nguyen
 
PPTX
Mule velocity
Praneethchampion
 
PPT
Mule security
Praneethchampion
 
PPTX
Mapping and listing with mule
Praneethchampion
 
PPTX
Send email attachment using smtp in mule esb
Praneethchampion
 
PPT
Mule google connectors
Praneethchampion
 
PPT
Mule anypoint exchange
Praneethchampion
 
PPTX
Documantation with mule
Praneethchampion
 
PPT
Anypoint data gateway
Praneethchampion
 
PPTX
Introduction to mule esb
Praneethchampion
 
PPT
Mule real-world-old
Praneethchampion
 
PDF
Damaging damzelz' no.1
tailgunnerx1
 
PPT
Mule batch processing
Praneethchampion
 
PPTX
Webservice vm in mule
Praneethchampion
 
PPTX
Mule soap
Praneethchampion
 
PPTX
Mmc rest api user groups
Praneethchampion
 
PPTX
Groovy in Mule
Praneethchampion
 
PPTX
xslt in mule
Praneethchampion
 
PPT
Mule security-jaas
Praneethchampion
 
Idempotent filter in mule
Praneethchampion
 
Mule flow and filter
Son Nguyen
 
Mule velocity
Praneethchampion
 
Mule security
Praneethchampion
 
Mapping and listing with mule
Praneethchampion
 
Send email attachment using smtp in mule esb
Praneethchampion
 
Mule google connectors
Praneethchampion
 
Mule anypoint exchange
Praneethchampion
 
Documantation with mule
Praneethchampion
 
Anypoint data gateway
Praneethchampion
 
Introduction to mule esb
Praneethchampion
 
Mule real-world-old
Praneethchampion
 
Damaging damzelz' no.1
tailgunnerx1
 
Mule batch processing
Praneethchampion
 
Webservice vm in mule
Praneethchampion
 
Mule soap
Praneethchampion
 
Mmc rest api user groups
Praneethchampion
 
Groovy in Mule
Praneethchampion
 
xslt in mule
Praneethchampion
 
Mule security-jaas
Praneethchampion
 
Ad

Similar to Mule for each scope header collection (20)

PPTX
EST is a software architectural style that was created to guide the design an...
michaelaaron25322
 
PDF
Sun certifiedwebcomponentdeveloperstudyguide
Alberto Romero Jiménez
 
DOC
General configurations on apache directives included in the httpd.conf file
Cognizant
 
PPTX
Raml part 1
venkata20k
 
PPTX
Data weave (MuleSoft)
Nandu List5
 
PPTX
Rails Request & Middlewares
Santosh Wadghule
 
PPT
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
shubhangimalas1
 
PPT
Servlet (1) also contains code to create it.ppt
juhishrivastava25
 
PPT
Servlet.ppt
kstalin2
 
PPT
Servlet.ppt
MouDhara1
 
PPT
Servlet1.ppt
KhushalChoudhary14
 
PPTX
Mule concepts transformers
kunal vishe
 
PPTX
Parameters as a part of body
Anirban Sen Chowdhary
 
PPTX
Design API using RAML - basics
kunal vishe
 
PPTX
Mule message enricher
Anirban Sen Chowdhary
 
PPTX
Working with data.pptx
SherinRappai
 
ODP
Developing web apps using Erlang-Web
fanqstefan
 
PPT
RAML - The architecture
Ankush Sharma
 
ODP
Spray
Knoldus Inc.
 
EST is a software architectural style that was created to guide the design an...
michaelaaron25322
 
Sun certifiedwebcomponentdeveloperstudyguide
Alberto Romero Jiménez
 
General configurations on apache directives included in the httpd.conf file
Cognizant
 
Raml part 1
venkata20k
 
Data weave (MuleSoft)
Nandu List5
 
Rails Request & Middlewares
Santosh Wadghule
 
Servlet123jkhuiyhkjkljioyudfrtsdrestfhgb
shubhangimalas1
 
Servlet (1) also contains code to create it.ppt
juhishrivastava25
 
Servlet.ppt
kstalin2
 
Servlet.ppt
MouDhara1
 
Servlet1.ppt
KhushalChoudhary14
 
Mule concepts transformers
kunal vishe
 
Parameters as a part of body
Anirban Sen Chowdhary
 
Design API using RAML - basics
kunal vishe
 
Mule message enricher
Anirban Sen Chowdhary
 
Working with data.pptx
SherinRappai
 
Developing web apps using Erlang-Web
fanqstefan
 
RAML - The architecture
Ankush Sharma
 
Ad

More from Praneethchampion (15)

PPTX
How to use expression filter
Praneethchampion
 
PPT
Mule execution
Praneethchampion
 
PPTX
Mule soa
Praneethchampion
 
PPTX
Mule esb stripe
Praneethchampion
 
PPTX
Dataweave
Praneethchampion
 
PPT
Mule oracle connectors
Praneethchampion
 
PPT
Mule esb api layer
Praneethchampion
 
PPTX
Soap request in mule
Praneethchampion
 
PPTX
Scatter gather flow in mule
Praneethchampion
 
PPTX
Mule rabbitmq
Praneethchampion
 
PPTX
Mule quartz
Praneethchampion
 
PPTX
Mule drools
Praneethchampion
 
PPTX
Mule esb DataWeave
Praneethchampion
 
PPTX
Creating dynamic json in mule
Praneethchampion
 
How to use expression filter
Praneethchampion
 
Mule execution
Praneethchampion
 
Mule esb stripe
Praneethchampion
 
Dataweave
Praneethchampion
 
Mule oracle connectors
Praneethchampion
 
Mule esb api layer
Praneethchampion
 
Soap request in mule
Praneethchampion
 
Scatter gather flow in mule
Praneethchampion
 
Mule rabbitmq
Praneethchampion
 
Mule quartz
Praneethchampion
 
Mule drools
Praneethchampion
 
Mule esb DataWeave
Praneethchampion
 
Creating dynamic json in mule
Praneethchampion
 

Recently uploaded (20)

PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Top Managed Service Providers in Los Angeles
Captain IT
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Français Patch Tuesday - Juillet
Ivanti
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
July Patch Tuesday
Ivanti
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 

Mule for each scope header collection

  • 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: