
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
- When you wire a mediation subflow instance in a mediation flow, an undefined terminal takes the type of the terminal to which it is wired.
- You can also change the terminal type explicitly by following
these steps:
- Click the subflow to select it.
- Switch to the Properties view.
- Switch to the Terminal tab.
- Expand the terminal tree, and click the terminal whose type you want to change.
- In the Message Type field, click the Change button.
- Choose a type from the list of available message types and click OK.
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.
- Click the node to select it.
- Switch to the Properties view.
- Switch to the Terminal tab.
- Expand the terminal tree, and select in or out terminal, depending
on the node that you are changing. Note: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.
- In the Message Type field, click the Change button.
- Choose a type from the list of available message types and click OK.
- Press Ctrls-S to save your changes.
- Synchronize all the subflow instances by using the Quick fix action in the Problems view. For more information, see Synchronizing a subflow instance and implementation.