IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows > Reusing mediation logic

Changing the input or output message type in a subflow

When you create a mediation subflow, the message types of the input and output terminals are undefined, which implies that the subflow can handle any kind of message. You can change the input or output message type to allow the subflow to only accept that particular message type.

When you open a mediation subflow in the Mediation Subflow editor, you are working with the mediation flow implementation. You need to use the Quick fix action to propagate any change that you make to the externals of the subflow in the Mediation Subflow editor.

Within a mediation flow, you are working with the subflow instance.

You can have many instances of a subflow implementation in the same mediation flow. Changes that you make to the properties of a subflow instance within the Mediation Flow editor apply only to that subflow instance.


Changing the type within a subflow instance

You can change the terminal message type of a mediation subflow instance in one of the following ways.


Changing the type within a subflow implementation

When you change the message type of an input or output of a subflow in the Subflow editor, you are changing the subflow implementation.

You need to propagate the change to all subflow instances that use the subflow.

In the Subflow editor, the in nodes represent the inputs to the subflow, and the out nodes represent the output of the subflow. To change the message type of an in or out node, follow these steps:

  1. Click the node to select it.
  2. Switch to the Properties view.
  3. Switch to the Terminal tab.
  4. Expand the terminal tree, and select in or out terminal, depending on the node that you are changing.

    The in node has an out terminal that propagates the message to the next primitive or node in the subflow. The out node has an in terminal that receives the message and sends it to the next primitive or node outside the subflow.

  5. In the Message Type field, click the Change button.

  6. Choose a type from the list of available message types and click OK.
  7. Press Ctrls-S to save your changes.
  8. Synchronize all the subflow instances by using the Quick fix action in the Problems view. See Synchronizing a subflow instance and implementation.

Reusing mediation logic


Related concepts:
Mediation subflows
Mediation subflow limitations


Related tasks:
Create a new mediation subflow
Editing a mediation subflow
Copying part of a mediation flow into a subflow
Adding a mediation subflow in a mediation flow
Use Service Invoke in a subflow
Synchronizing a subflow instance and implementation


Related information:
Promoting properties in a subflow