Using a Flow Reference component to synchronously execute another flow
Flow Reference is used to synchronously execute another flow that is external to the current flow. If a message reaches the Flow Reference component, Mule invokes the external flow referenced by it. Once the referenced flow completes, the control passes back to the initiating flow only after the external process is completed.
To demonstrate this example, we'll use the following four components: HTTP, Logger, Java, and Flow Ref.
- Open Mule Studio and enter the workspace name as shown in the following screenshot:
- To create a new project, go to File | New | Mule Project ...