Contact Us 1-800-596-4880

Flow Ref Component Reference

Use a flow reference component to send a Mule message to another flow. When processing reaches the flow reference component, Mule sends the message to the flow whose name matches the name specified in this component. A flow reference can route messages to any type of flow within the same application.

Configuration

STUDIO Visual Editor

  1. Place the flow reference component on the canvas at the point where you want the current flow to call another flow.

    Studio_FlowRef_canvas
  2. Open the flow reference component’s properties pane to configure it. Optionally, give the flow reference a unique Display Name. At minimum, select a Flow name from the drop-down menu to select another flow within your application to which you would like to send your message.

    Studio+flow+reference+properties
    Attribute Value Description

    Display Name

    Flow Reference

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

    Flow name

    Mule will auto-populate this drop-down with the flow names in your application

    Select the name of the flow that you want to invoke using this flow reference.

XML Editor or Standalone

<flow-ref name="helloworldFlow2" doc:name="Flow Reference"/>
Element Description

flow-ref

Insert the flow-ref element into your code at the point where you want the current flow to call another flow.

Element Attribute Description

name

Specify 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.

See Also