Access Keys:
Skip to content (Access Key - 0)
Cancel    
Cancel   
 

Contents

Flow Ref Component Reference

Use a flow reference component in flow to direct Mule to send a message to another flow for processing. When a message reaches a flow reference component in a flow, Mule sends the message to another flow according to the flow ref attribute.

A flow reference can route messages to any type of flow within the same application. Refer to Child Flows for more information.

Configuration

    1. Place the flow reference component on the canvas at the point where you want the current flow to call another flow. 
    2. Open the flow reference component's properties pane to configure it according to the table below.

    AttributeValueDescription
    Display NameFlow ReferenceCustomize to display a unique name for the component in your application.
    Flow nameMule will auto-populate this drop-down with the flow names in your applicationSelect the name of the flow that you want to invoke using this flow reference.

    Add a flow-ref element to your flow, then configure its attributes according to the table below. Refer to code sample below.

    ElementDescription
    flow-refInsert the flow-ref element into your code at the point where you want the current flow to call another flow.
    Element AttributeDescription
    nameSpecify the name of the flow that you want to invoke using this flow reference.
    doc:name

    Customize to display a unique name for the component in your application.

    Note: Attribute not required in Mule Standalone configuration.

     

    Go Further

    • Read more about the different kinds of Child Flows that you can call using a flow reference component.