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.

Getting ready

To demonstrate this example, we'll use the following four components: HTTP, Logger, Java, and Flow Ref.

  1. Open Mule Studio and enter the workspace name as shown in the following screenshot:
    Getting ready
  2. To create a new project, go to File | New | Mule Project ...

Get Mule ESB Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.