SlideShare a Scribd company logo
1 of 9
Scope in Studio
Introduction
 Referred to as "wrappers»
 Processing blocks
 Poll, Message Enricher, and Until Successful require you
to embed no more than one message processor within the
processing block
 The other sub-group of scopes (which includes
Composite, Async and Sub Flow) accepts more than one
message processor
Composite, Async
and Sub Flow
 Composite
 The embedded building blocks are actually message sources (i.e. inbound
connectors) that listen in parallel on different channels for incoming messages
 Whenever any of these receivers accepts a message, the Composite scope passes it
to the first message processor in the flow, thus triggering that flow
 Async / Sub Flow
 The embedded message processors form a single, combined message processor (or event) sequence
 The Async scope sits in the parent flow sequence, and when it receives a message, it sends a copy of the
message on to the next message processor in the parent flow, while simultaneously (and asychronously)
processing another copy of the message through its own sequence of embedded message processors
 The Sub Flow scope exists as a synchronous branch flow with respect to the parent flow. After it receives
a message from a Flow Reference component, it processes that message through the entire sequence of
embedded message processors, then passes the message back to the next message processor in the parent
flow for further processing. This process repeats each time a Flow Reference component in the main flow
"calls" the Sub Flow processing block
Synchronous and
Asynchronous
 Synchronous
 Means that processing on the main flow halts, and all the message processors in
the child flow execute before the parent flow resumes processing; in other words,
no processing takes place in the parent flow while the synchronous child flow is
executing
 Asynchronous
 Means that as soon as the child flow receives a message, it immediately sends one
copy of that message to the next message processor in the parent flow so that
processing in the parent flow continues, essentially uninterrupted
The asynchronous child flow also starts processing another copy of the message
with its own sequence of message processors
These two simultaneous processing branches continue independently until each
completes
Scopes Available in
Studio(1)
 Async
 Cache
 Composite Source
 Foreach
 Message Enricher
 Poll
 Sub Flow
 Transactional
 Until Successful
Scopes Available in
Studio(2)
 Async
 Creates a block of message processors that execute asynchronously while the rest of the
flow continues to execute in parallel
 Cache
 Caches data produced by part of a flow. Wrap a cache scope around message processors
in your flow so that it caches the response events produced within the scope
 Composite Source
 To accept incoming messages from multiple input channels, place two or more message
sources into a Composite Source
A message entering the Composite Source on any supported channel triggers the
processing flow
Scopes Available in
Studio(3)
 Foreach
 Splits any type of message collection apart into individual messages for processing, and
then aggregate them again at the end of the scope
 Message Enricher
 Appends information to a message, often using an expression to determine what part of
the payload to evaluate so as to return an appropriate value to append to that payload
 The message processor is executed and the enricher scope uses the result of that
execution to enrich the message coming into the scope
Scopes Available in
Studio(4)
 Poll
 Periodically polls an embedded message receiver for new messages
 Sub Flow
 A flow that is called by another flow
 Sub flows inherit their properties from the flow reference and are always synchronous
 This type of scope can be very useful when you need to reuse code at several points
within the same flow
Scopes Available in
Studio(5)
 Transactional
 Mule applies the concept of transactions to operations in application for which the result
cannot remain indeterminate
Where a series of steps in flow must succeed or fail as one unit, Mule uses a transaction
to demarcate such a unit
 Until Successful
 Attempts, at a specified interval, to route a message to an embedded message processor
until one of the following occurs:
 it succeeds
 the maximum number of retries is reached
 an exception is thrown
 Thus, Until Successful can prove useful in sending messages to resources, such as shared printers,
which might not always be immediately available

More Related Content

Viewers also liked

Integrate with database by groovy
Integrate with database by groovyIntegrate with database by groovy
Integrate with database by groovySon Nguyen
 
Expression language
Expression languageExpression language
Expression languageSon Nguyen
 
Xml to xml transformation
Xml to xml transformationXml to xml transformation
Xml to xml transformationSon Nguyen
 
MailToTicket - Presentació final de projecte
MailToTicket - Presentació  final de projecteMailToTicket - Presentació  final de projecte
MailToTicket - Presentació final de projecteÁngel Aguilera
 
Trust Enablers in the Investmentchain of SBEs - By Gibbernak
Trust Enablers in the Investmentchain of SBEs - By GibbernakTrust Enablers in the Investmentchain of SBEs - By Gibbernak
Trust Enablers in the Investmentchain of SBEs - By GibbernakCarsten Høegh Bovbjerg
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored proceduremdfkhan625
 
Mulesoft Filters
Mulesoft FiltersMulesoft Filters
Mulesoft Filtersmdfkhan625
 
26 funcao das_camadas_do_modelo_osi
26 funcao das_camadas_do_modelo_osi26 funcao das_camadas_do_modelo_osi
26 funcao das_camadas_do_modelo_osiJobert Abrahão
 
Esquiada 2016 Institut de Gurb
Esquiada 2016 Institut de GurbEsquiada 2016 Institut de Gurb
Esquiada 2016 Institut de Gurbsesgurb
 
Caching & validating
Caching & validatingCaching & validating
Caching & validatingSon Nguyen
 
Mule esb teste parte 1
Mule esb teste   parte 1Mule esb teste   parte 1
Mule esb teste parte 1Jeison Barros
 
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...YSF-2015
 
Mule concepts elements in a mule flow
Mule concepts elements in a mule flowMule concepts elements in a mule flow
Mule concepts elements in a mule flowkunal vishe
 
Eσκιμώοι
EσκιμώοιEσκιμώοι
Eσκιμώοι5odimkat
 
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...Sociedad Española de Cardiología
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts componentskunal vishe
 
Hipertensión pulmonar
Hipertensión pulmonarHipertensión pulmonar
Hipertensión pulmonarJaime Cruz
 

Viewers also liked (20)

Integrate with database by groovy
Integrate with database by groovyIntegrate with database by groovy
Integrate with database by groovy
 
Expression language
Expression languageExpression language
Expression language
 
Xml to xml transformation
Xml to xml transformationXml to xml transformation
Xml to xml transformation
 
MailToTicket - Presentació final de projecte
MailToTicket - Presentació  final de projecteMailToTicket - Presentació  final de projecte
MailToTicket - Presentació final de projecte
 
Trust Enablers in the Investmentchain of SBEs - By Gibbernak
Trust Enablers in the Investmentchain of SBEs - By GibbernakTrust Enablers in the Investmentchain of SBEs - By Gibbernak
Trust Enablers in the Investmentchain of SBEs - By Gibbernak
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Mulesoft Filters
Mulesoft FiltersMulesoft Filters
Mulesoft Filters
 
EPOC
EPOCEPOC
EPOC
 
26 funcao das_camadas_do_modelo_osi
26 funcao das_camadas_do_modelo_osi26 funcao das_camadas_do_modelo_osi
26 funcao das_camadas_do_modelo_osi
 
Esquiada 2016 Institut de Gurb
Esquiada 2016 Institut de GurbEsquiada 2016 Institut de Gurb
Esquiada 2016 Institut de Gurb
 
Caching & validating
Caching & validatingCaching & validating
Caching & validating
 
Mule esb teste parte 1
Mule esb teste   parte 1Mule esb teste   parte 1
Mule esb teste parte 1
 
Mule esb
Mule esbMule esb
Mule esb
 
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
 
Mule concepts elements in a mule flow
Mule concepts elements in a mule flowMule concepts elements in a mule flow
Mule concepts elements in a mule flow
 
Eσκιμώοι
EσκιμώοιEσκιμώοι
Eσκιμώοι
 
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...
¿Cómo estudiar un paciente en que el Ecocardiograma detecta Hipertensión Pulm...
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
 
Hipertensión pulmonar
Hipertensión pulmonarHipertensión pulmonar
Hipertensión pulmonar
 
Asis2013
Asis2013Asis2013
Asis2013
 

Similar to Scopes

Controlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESBControlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESBMani Rathnam Gudi
 
Mule integration
Mule integrationMule integration
Mule integrationSon Nguyen
 
Composite source in mule
Composite source in muleComposite source in mule
Composite source in muleAnkit Lawaniya
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Mule message processor or routers
Mule message processor or routersMule message processor or routers
Mule message processor or routerssathyaraj Anand
 
5_Interprocess Communication.pptx
5_Interprocess Communication.pptx5_Interprocess Communication.pptx
5_Interprocess Communication.pptxssuser2adefd1
 
Java Messaging Services
Java Messaging ServicesJava Messaging Services
Java Messaging Serviceskumar gaurav
 
Inter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.pptInter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.pptNitihyaAshwinC
 
Flows and subflows
Flows and subflowsFlows and subflows
Flows and subflowsKrishna_in
 
Process Management.ppt
Process Management.pptProcess Management.ppt
Process Management.pptJeelBhanderi4
 
Characterization of communication.ppt
Characterization of communication.pptCharacterization of communication.ppt
Characterization of communication.pptAthira Ravindranathan
 

Similar to Scopes (20)

Scopes in mule
Scopes in muleScopes in mule
Scopes in mule
 
Controlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESBControlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESB
 
Controlling message flow
Controlling message flowControlling message flow
Controlling message flow
 
Mulesfot scopes
Mulesfot scopesMulesfot scopes
Mulesfot scopes
 
Mule esb mule message
Mule esb   mule messageMule esb   mule message
Mule esb mule message
 
Mule integration
Mule integrationMule integration
Mule integration
 
Composite source in mule
Composite source in muleComposite source in mule
Composite source in mule
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Mule messages
Mule messagesMule messages
Mule messages
 
Mule message processor or routers
Mule message processor or routersMule message processor or routers
Mule message processor or routers
 
5_Interprocess Communication.pptx
5_Interprocess Communication.pptx5_Interprocess Communication.pptx
5_Interprocess Communication.pptx
 
Java Messaging Services
Java Messaging ServicesJava Messaging Services
Java Messaging Services
 
Inter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.pptInter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.ppt
 
Mule scopes 2
Mule scopes 2Mule scopes 2
Mule scopes 2
 
Mule scopes 1
Mule scopes 1Mule scopes 1
Mule scopes 1
 
Mule message
Mule messageMule message
Mule message
 
Flows and subflows
Flows and subflowsFlows and subflows
Flows and subflows
 
Process Management.ppt
Process Management.pptProcess Management.ppt
Process Management.ppt
 
Characterization of communication.ppt
Characterization of communication.pptCharacterization of communication.ppt
Characterization of communication.ppt
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 

Recently uploaded

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 

Scopes

  • 2. Introduction  Referred to as "wrappers»  Processing blocks  Poll, Message Enricher, and Until Successful require you to embed no more than one message processor within the processing block  The other sub-group of scopes (which includes Composite, Async and Sub Flow) accepts more than one message processor
  • 3. Composite, Async and Sub Flow  Composite  The embedded building blocks are actually message sources (i.e. inbound connectors) that listen in parallel on different channels for incoming messages  Whenever any of these receivers accepts a message, the Composite scope passes it to the first message processor in the flow, thus triggering that flow  Async / Sub Flow  The embedded message processors form a single, combined message processor (or event) sequence  The Async scope sits in the parent flow sequence, and when it receives a message, it sends a copy of the message on to the next message processor in the parent flow, while simultaneously (and asychronously) processing another copy of the message through its own sequence of embedded message processors  The Sub Flow scope exists as a synchronous branch flow with respect to the parent flow. After it receives a message from a Flow Reference component, it processes that message through the entire sequence of embedded message processors, then passes the message back to the next message processor in the parent flow for further processing. This process repeats each time a Flow Reference component in the main flow "calls" the Sub Flow processing block
  • 4. Synchronous and Asynchronous  Synchronous  Means that processing on the main flow halts, and all the message processors in the child flow execute before the parent flow resumes processing; in other words, no processing takes place in the parent flow while the synchronous child flow is executing  Asynchronous  Means that as soon as the child flow receives a message, it immediately sends one copy of that message to the next message processor in the parent flow so that processing in the parent flow continues, essentially uninterrupted The asynchronous child flow also starts processing another copy of the message with its own sequence of message processors These two simultaneous processing branches continue independently until each completes
  • 5. Scopes Available in Studio(1)  Async  Cache  Composite Source  Foreach  Message Enricher  Poll  Sub Flow  Transactional  Until Successful
  • 6. Scopes Available in Studio(2)  Async  Creates a block of message processors that execute asynchronously while the rest of the flow continues to execute in parallel  Cache  Caches data produced by part of a flow. Wrap a cache scope around message processors in your flow so that it caches the response events produced within the scope  Composite Source  To accept incoming messages from multiple input channels, place two or more message sources into a Composite Source A message entering the Composite Source on any supported channel triggers the processing flow
  • 7. Scopes Available in Studio(3)  Foreach  Splits any type of message collection apart into individual messages for processing, and then aggregate them again at the end of the scope  Message Enricher  Appends information to a message, often using an expression to determine what part of the payload to evaluate so as to return an appropriate value to append to that payload  The message processor is executed and the enricher scope uses the result of that execution to enrich the message coming into the scope
  • 8. Scopes Available in Studio(4)  Poll  Periodically polls an embedded message receiver for new messages  Sub Flow  A flow that is called by another flow  Sub flows inherit their properties from the flow reference and are always synchronous  This type of scope can be very useful when you need to reuse code at several points within the same flow
  • 9. Scopes Available in Studio(5)  Transactional  Mule applies the concept of transactions to operations in application for which the result cannot remain indeterminate Where a series of steps in flow must succeed or fail as one unit, Mule uses a transaction to demarcate such a unit  Until Successful  Attempts, at a specified interval, to route a message to an embedded message processor until one of the following occurs:  it succeeds  the maximum number of retries is reached  an exception is thrown  Thus, Until Successful can prove useful in sending messages to resources, such as shared printers, which might not always be immediately available