SlideShare a Scribd company logo
1 of 14
Understanding Flows and
Subflows in Mule
- Ravi Singh
What is a Flow?
● A flow starts at inbound point for example http
● In Mule, everything start with a message which goes
through a flow
● A flow can either complete the process by itself or pass it
to other flow or subflow
Inbound
point A
Message
processing
Flow ends
Advantages of Using Flow in Mule
● When you want to execute Asynchronous flow, you have to break it different
flow
Flow A Processing Flow Ends
Flow B Processing Flow Ends
Advantages of Using Flow in Mule
● When we want to execute different error based on type of
flow
● Divides your flow in different flow makes your application
modular and easier to maintain
● A subflow can be called multiple times within an
application
● In case of asynchronous flow, when you deploy on Mule
clusters; It will help you to load balance the execution.
Types Of Flow
1. Subflow
2. Synchronous flow
3. Asynchronous flow
SubFlow
● Pass control from main flow to another flow
● Execution will be synchronous
● It inherit message strategy and exception
strategy from parent flow
● Encourages you to keep business logic
separate from view logic
Subflow demonstration
Image source - Mulesoft documentation
Synchronous flow
● Flow execution is synchronous same as subflow
● It does not inhering processing strategy and exception
from parent
● You can configure a subflow own processing strategy and
exception
Synchronous flow Demo
Image source - Mulesoft documentation
Difference between subflow and Synchronous flow
● The flow execution is same in both flow but as
Synchronous flow does not inherit processing
strategy and exception from parent , so multiple flow
can call it.
● In case of Subflow only calling parent can call it
● You create subflow when it is specific to a flow
● You create synchronous flow when you want to use
Asynchronous flow
● A main flow can call Asynchronous flow
● Async flow does not have to pass data back to main flow
and hence it continue to execute with the main flow
● Async flow has it own processing strategy and exception
● Async flow can be call multiple time by same flow
Asynchronous flow Demo
Image source - Mulesoft documentation
Flow Demonstration in Anypoint Studio
Thank You!!

More Related Content

Similar to Understanding flows and subflows in mule

Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptxGetting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptxShams Pirzada
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflowabhipokharna
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in muleF K
 
Until successful component
Until successful component Until successful component
Until successful component Sunil Komarapu
 
Flows and subflows in mule
Flows and subflows in muleFlows and subflows in mule
Flows and subflows in muleSindhu VL
 
Cassandra Lunch #88: Cadence
Cassandra Lunch #88: CadenceCassandra Lunch #88: Cadence
Cassandra Lunch #88: CadenceAnant Corporation
 
Getting Started with Akka Streams
Getting Started with Akka StreamsGetting Started with Akka Streams
Getting Started with Akka StreamsKnoldus Inc.
 
Mule scopes&error handling
Mule scopes&error handlingMule scopes&error handling
Mule scopes&error handlingSumit Gole
 
Types of flows in mulesoft
Types of flows in mulesoftTypes of flows in mulesoft
Types of flows in mulesoftVishnuAnji
 
Warsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingWarsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingPatryk Bandurski
 
Introduction to Flink Streaming
Introduction to Flink StreamingIntroduction to Flink Streaming
Introduction to Flink Streamingdatamantra
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsShekh Muenuddeen
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsShekh Muenuddeen
 
Break,Pass and Continue.pptx
Break,Pass and Continue.pptxBreak,Pass and Continue.pptx
Break,Pass and Continue.pptxUjjwalGupta604782
 
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECT
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECTFlow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECT
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECTSabrina Marechal
 
Patna_Meetup_MQ
Patna_Meetup_MQPatna_Meetup_MQ
Patna_Meetup_MQOm Prakash
 

Similar to Understanding flows and subflows in mule (20)

Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptxGetting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflow
 
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
 
Flows and subflows in mule
Flows and subflows in muleFlows and subflows in mule
Flows and subflows in mule
 
How to use splitter component
How to use splitter componentHow to use splitter component
How to use splitter component
 
How to use splitter component
How to use splitter componentHow to use splitter component
How to use splitter component
 
Cassandra Lunch #88: Cadence
Cassandra Lunch #88: CadenceCassandra Lunch #88: Cadence
Cassandra Lunch #88: Cadence
 
RxSwift
RxSwiftRxSwift
RxSwift
 
Mule esb overview
Mule esb overviewMule esb overview
Mule esb overview
 
Getting Started with Akka Streams
Getting Started with Akka StreamsGetting Started with Akka Streams
Getting Started with Akka Streams
 
Mule scopes&error handling
Mule scopes&error handlingMule scopes&error handling
Mule scopes&error handling
 
Types of flows in mulesoft
Types of flows in mulesoftTypes of flows in mulesoft
Types of flows in mulesoft
 
Warsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingWarsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective Streaming
 
Introduction to Flink Streaming
Introduction to Flink StreamingIntroduction to Flink Streaming
Introduction to Flink Streaming
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Break,Pass and Continue.pptx
Break,Pass and Continue.pptxBreak,Pass and Continue.pptx
Break,Pass and Continue.pptx
 
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECT
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECTFlow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECT
Flow Tuning: Mule 3 vs. Mule 4 - MuleSoft Chicago CONNECT
 
Patna_Meetup_MQ
Patna_Meetup_MQPatna_Meetup_MQ
Patna_Meetup_MQ
 

More from Ravi Prakash Singh

Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptxPune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptxRavi Prakash Singh
 
Gappsy Review - Create faster and Amazing apps for IOS and Android
Gappsy Review - Create faster and Amazing apps for IOS and AndroidGappsy Review - Create faster and Amazing apps for IOS and Android
Gappsy Review - Create faster and Amazing apps for IOS and AndroidRavi Prakash Singh
 
5 Reason Why I have selected Generatepress Theme for my Blog
5 Reason Why I have selected Generatepress Theme for my Blog5 Reason Why I have selected Generatepress Theme for my Blog
5 Reason Why I have selected Generatepress Theme for my BlogRavi Prakash Singh
 
Black friday deals for bloggers 2018
Black friday deals for bloggers 2018Black friday deals for bloggers 2018
Black friday deals for bloggers 2018Ravi Prakash Singh
 
Elementor pro review and comparison with thrive architect
Elementor pro review and comparison with thrive architectElementor pro review and comparison with thrive architect
Elementor pro review and comparison with thrive architectRavi Prakash Singh
 
How to access Microsoft Azure cloud storage using Mulesoft
How to access Microsoft Azure cloud storage using MulesoftHow to access Microsoft Azure cloud storage using Mulesoft
How to access Microsoft Azure cloud storage using MulesoftRavi Prakash Singh
 
How to access Oracle Cloud storage using Mulesoft
How to access Oracle Cloud storage using MulesoftHow to access Oracle Cloud storage using Mulesoft
How to access Oracle Cloud storage using MulesoftRavi Prakash Singh
 
How to deploy and run mule in docker
How to deploy and run mule in dockerHow to deploy and run mule in docker
How to deploy and run mule in dockerRavi Prakash Singh
 

More from Ravi Prakash Singh (9)

Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptxPune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
 
Gappsy Review - Create faster and Amazing apps for IOS and Android
Gappsy Review - Create faster and Amazing apps for IOS and AndroidGappsy Review - Create faster and Amazing apps for IOS and Android
Gappsy Review - Create faster and Amazing apps for IOS and Android
 
5 Reason Why I have selected Generatepress Theme for my Blog
5 Reason Why I have selected Generatepress Theme for my Blog5 Reason Why I have selected Generatepress Theme for my Blog
5 Reason Why I have selected Generatepress Theme for my Blog
 
Black friday deals for bloggers 2018
Black friday deals for bloggers 2018Black friday deals for bloggers 2018
Black friday deals for bloggers 2018
 
Elementor pro review and comparison with thrive architect
Elementor pro review and comparison with thrive architectElementor pro review and comparison with thrive architect
Elementor pro review and comparison with thrive architect
 
How to access Microsoft Azure cloud storage using Mulesoft
How to access Microsoft Azure cloud storage using MulesoftHow to access Microsoft Azure cloud storage using Mulesoft
How to access Microsoft Azure cloud storage using Mulesoft
 
How to access Oracle Cloud storage using Mulesoft
How to access Oracle Cloud storage using MulesoftHow to access Oracle Cloud storage using Mulesoft
How to access Oracle Cloud storage using Mulesoft
 
How to deploy and run mule in docker
How to deploy and run mule in dockerHow to deploy and run mule in docker
How to deploy and run mule in docker
 
IOT and Mulesoft
IOT and MulesoftIOT and Mulesoft
IOT and Mulesoft
 

Recently uploaded

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 

Recently uploaded (20)

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 

Understanding flows and subflows in mule

  • 1. Understanding Flows and Subflows in Mule - Ravi Singh
  • 2. What is a Flow? ● A flow starts at inbound point for example http ● In Mule, everything start with a message which goes through a flow ● A flow can either complete the process by itself or pass it to other flow or subflow Inbound point A Message processing Flow ends
  • 3. Advantages of Using Flow in Mule ● When you want to execute Asynchronous flow, you have to break it different flow Flow A Processing Flow Ends Flow B Processing Flow Ends
  • 4. Advantages of Using Flow in Mule ● When we want to execute different error based on type of flow ● Divides your flow in different flow makes your application modular and easier to maintain ● A subflow can be called multiple times within an application ● In case of asynchronous flow, when you deploy on Mule clusters; It will help you to load balance the execution.
  • 5. Types Of Flow 1. Subflow 2. Synchronous flow 3. Asynchronous flow
  • 6. SubFlow ● Pass control from main flow to another flow ● Execution will be synchronous ● It inherit message strategy and exception strategy from parent flow ● Encourages you to keep business logic separate from view logic
  • 7. Subflow demonstration Image source - Mulesoft documentation
  • 8. Synchronous flow ● Flow execution is synchronous same as subflow ● It does not inhering processing strategy and exception from parent ● You can configure a subflow own processing strategy and exception
  • 9. Synchronous flow Demo Image source - Mulesoft documentation
  • 10. Difference between subflow and Synchronous flow ● The flow execution is same in both flow but as Synchronous flow does not inherit processing strategy and exception from parent , so multiple flow can call it. ● In case of Subflow only calling parent can call it ● You create subflow when it is specific to a flow ● You create synchronous flow when you want to use
  • 11. Asynchronous flow ● A main flow can call Asynchronous flow ● Async flow does not have to pass data back to main flow and hence it continue to execute with the main flow ● Async flow has it own processing strategy and exception ● Async flow can be call multiple time by same flow
  • 12. Asynchronous flow Demo Image source - Mulesoft documentation
  • 13. Flow Demonstration in Anypoint Studio