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. |
SubFlow
Use – It can be used to split common logic and be reused by other flows. Output: |
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. Example: |
Asynchronous Flow
Example: 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. Example: |
Thank for sharing great articles about Mule
Thank you