WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Adding a subflow

In a message flow, you can include an embedded message flow, also known as a subflow. For example, you might define a subflow that provides error handling, and include it in a message flow connected to a failure terminal on a node that can generate an error in some situations.

Before you start:

To complete this task, you must have created your subflow in either a .subflow file, or in a .msgflow file. You must also have created a message flow in which to insert the subflow. For more information about creating a .subflow file, see Creating a subflow. For more information about creating a .msgflow file, see Creating a message flow. For more information about the differences between subflows defined in .subflow files and subflows defined in .msgflow files, see Subflows.

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 application, library, or Message Broker project.
  • The flow is defined in a different library, and you have specified the dependency of the current application, library, or Message Broker project on that other library.
If you want to embed subflows into other subflows, be aware of the following information:
  • You can embed subflows that are defined in .subflow files into subflows that are defined in .subflow files and .msgflow files.
  • You can embed subflows that are defined in .msgflow files into subflows that are defined only in .msgflow files.

To add a subflow to a message flow or subflow, complete the following steps:

  1. Open the message flow or subflow in which you want to embed the subflow.
  2. To add a subflow, drag the message flow or subflow that you want to add from the Broker Development view to the editor. Alternatively, click Flow > Add subflow, then select the flow that you want to add from the list. The embedded subflow is shown in the Message Flow editor as a single node with the terminals that represent the Input and Output nodes that you have included in the subflow.
  3. Connect the subflow node to one or more of the nodes in the main message flow or subflow. For more details, see Connecting message flow nodes.
  4. To add and connect further subflow nodes, repeat steps 2 and 3.
  5. To work with the contents of the subflow, double-click the subflow icon. The subflow opens in the Message Flow editor.

You can package subflows that are defined in .msgflow files as user-defined nodes so that you can use them in message flows and subflows; for more information, see Using a subflow as a user-defined node.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:02


Task topicTask topic | Version 8.0.0.7 | ac02233_