See information about the latest product version
Versioning a subflow by using a keyword as a Passthrough node name
To define the version of a subflow, you can set the version of a subflow by adding a Passthrough node to the subflow with a keyword as the node name.
Before you begin
Set up the initial configuration. See Creating the initial configuration for the Error Handler sample.
About this task
When you set a subflow version by adding a Passthrough node to the subflow with a keyword as the node name, you can check the value at run time in the WebSphere® Message Broker console and in WebSphere Message Broker Explorer.
Procedure
To define the version of a subflow, you must complete the following steps in the WebSphere Message Broker Toolkit:
- Open the subflow in the Message Flow editor.
- Add a Passthrough node to a subflow.
- Connect the Passthrough node to other nodes in the subflow or leave it unconnected.
- Define a keyword. For more information, see Defining a keyword to be used as the container of a subflow version.
- Set the keyword in the Node name property of the Passthrough node.
Example
- In the WebSphere Message Broker Toolkit,
open the Error_Handler.subflow subflow in the
Message Flow editor:
In the Broker Development view, right-click the name of the subflow, and then select .
- In the Error_Handler.subflow, connect a
Passthrough node.
- In the Properties tab of the Passthrough node, use the Node
name field to set the subflow version. This must be in
the format:
$MQSI name of your subflow Subflow Version = Version xxxx MQSI$.
where name of your subflow is the name of your subflow; and xxxx is your subflow version identifier.
- Create a BAR file that includes the Main_flow.msgflow.
- Deploy the message flow into a broker runtime environment. For more information, see Deploying a broker archive file.
- In the broker console, run the mqsireadbar command
to check the version of the subflow.
You run the command using the following syntax:
mqsireadbar -b your BAR file name
where your BAR file name is the name of the BAR file you have created to deploy the sample into the run time.
What to do next
After you set the version of a subflow, create a BAR file. For more information, see Creating a BAR file that includes a subflow created as a .subflow file or Creating a BAR file that includes a subflow created as a .msgflow file.