Within a message flow, you might want to include an embedded message
flow, also known as a subflow.
Before you start
To complete
this task, you must have completed one of the following tasks:
When you add a subflow, it appears in the editor view as a single
node.
You can embed subflows into your message flow if either of the
following statements is true:
- The flow that you want to embed is defined in the same message flow project.
- The flow is defined in a different message flow project, and you have
specified the dependency of the current message flow project on that other
project.
To add a subflow to a message flow:
- Switch to the Broker Application Development
perspective.
- Open the message flow that you want to work with.
- Drag and drop the message flow from the Navigator
view into the editor view. Alternatively, highlight the embedding message
flow and click , which displays a list of valid flows that you
can add to the current flow.
- Select the flow that you want to add from the
list. The subflow icon is displayed with the terminals that represent the
Input and Output nodes that you have included in the subflow.
- Click OK.
- Repeat steps 3, 4, and 5 to add further subflow nodes.
- Select and open (double-click) the flow by name in the Navigator
view, or right-click the embedded flow icon and select Open Subflow to
work with the contents of the embedded flow
When you have added the nodes that you want in this message flow,
you can connect them to specify the flow of control through the message flow,
and you can modify their properties.