Mule 3 Mulesoft Basics Mulesoft Tutorial

Understanding Various Mule Flows – Mulesoft Tutorial

Mulesoft / Mule EBS – Mule Flows Tutorial
Mule Flows

In this mule ESB tutorial we will understand various mule flows in detail with downloadable examples.

Various types of flows in mule

There are 4 types of flows in mule. While creating these flows the flow name should be unique in whole mule project despite beaning in different mule application XML file.


  1. Subflow always processes messages synchronously (relative to the flow that triggered its execution).
  2. Subflow executes in the same thread of the calling process. Calling process triggers the sub-flow and waits for it to complete and resumes once the sub-flow has completed.
  3. Subflow inherits processing strategy and exception handling strategy from the parent/calling flow.

Use – It can be used to split common logic and be reused by other flows.

Configuration – We have created 3 loggers in total, 2 in main/calling flow which is before and after flow reference and one in the sub flow.


Synchronous Flow

Same as sub-flow, the only difference is that in synchronous flows you need to separately define an exception strategy to it, it does not inherit the exception strategy of its calling flow.


Asynchronous Flow

  1. As in sub-flow and synchronous flow, calling process triggers the sub-flow or synchronous flow and waits for it to complete; for asynchronous flow the flow, calling process triggers an asynchronous flow and moves ahead to its next activity.
  2. An asynchronous flow executes in parallel to its calling/parent flow in a different thread.
  3. An asynchronous flow does not return its output it its parent/calling flow.


Configuration –
1. We have created 4 loggers in total, 2 in main/calling flow which is before and after flow reference (inside Async flow calling a sub-flow) and one in the sub flow.
Since sub-flow inherits processing strategy and exception handling strategy from the parent/calling flow, the sub flow will execute asynchronously.


2. We have added a groovy script in the subflow to pause the thread executing it for 10 sec.

Private Flow

Flow that does not have an inbound connector in the source. Means a private flow cannot start of its own on receiving the inbound message as it does not have any inbound connector, A private flow can only be called using flow-ref same as sub-flow.


About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.


  1. southside chiropractic & car injury clinic

    I loved as much as you will receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this hike.

  2. Shawnna Walczyk

    Good day! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results. If you know of any please share. Many thanks!

  3. Margarette

    When using the right frosting glass paint you are able to use glass cleaners and solvents for removing greasy finger marks
    or, in the case of glassware, insert them in the dish
    washer. Glaze basically tints the area or modifies the area that is already painted underneath.
    Hard or dark colors is not going to enable the light
    to pass through and may block the sunlight and soft colors will let the sunlight pass.


    One working out ends you’ll be required to fill some online forms for various companies.
    Here are some quick tips you can use to create and run your
    newsletter successfully1. Are they enough competent
    to handle new techniques or technologies.

  5. Siobhan

    Going having a low-cost service, even a “pay-as-you-go”
    one, can make good economic sense and a smart business move on your own part.
    You can save your energy if you use online fax when you do not have to
    go out and hold the credit file printed and faxed for your landlord.
    This also permits you to use things your organization probably already has,
    namely, computers plus an internet connection, to send faxes, instead of the need to obtain a fax machine and a dedicated fax line.


    This game won’t just present you with an energetic body but also
    healthier disposition. You will be pleasantly surprised about what you would
    find on internet websites from pool facilities to court amenities.
    Crossing or stepping about the baseline is known as a foot
    fault to cause one to lose a point.

  7. Randee Mcmartin

    I needed to send you a tiny observation to say thank you as before about the lovely secrets you have shown in this article. It is so shockingly generous with people like you to supply publicly what a number of people would have offered for sale for an ebook to help make some money on their own, primarily now that you might have done it in case you considered necessary. Those tips as well worked to become easy way to fully grasp someone else have the identical passion much like my own to see significantly more with reference to this matter. I know there are some more pleasant opportunities ahead for many who scan your blog.

  8. Jerri Stpeter

    We are a group of volunteers and starting a brand new scheme in our community. Your website offered us with valuable info to paintings on. You have done a formidable activity and our whole group shall be grateful to you.

  9. pip policy

    Undeniably believe that which you stated. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people consider worries that they plainly don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

  10. Raymond Mccumbee

    trying to determine whether my company blog should be housed on corp. website or using different platform like Blogspot? The goal is to drive as much qualified traffic to the “new” corp. website as possible. Also, what would be better from an SEO perspective?.

Leave a Reply

Your email address will not be published.