Splitting the processing of message flows
Process parts of your message flow in different locations by creating one message flow that calls another message flow.
Before you begin
About this task
Callable flows allow you to split your message flow processing between different locations. Callable message flows also facilitate reuse because they can be called by multiple message flows. You can split your processing between IBM Integration Bus and IBM App Connect on IBM Cloud, or between different locations in IBM Integration Bus.
The calling flow uses a CallableFlowInvoke node to call a CallableInput node in the callable flow. The callable flow then uses a CallableReply node to return information to the CallableFlowInvoke node in the original flow.
If your initial and callable flows are in the same integration server, they can communicate with each other as soon as you deploy them. If your flows are in different integration servers, or one is in IBM Integration Bus while the other is in IBM App Connect on IBM Cloud, you must configure communication between them. The flows use a Switch server to route data, and connectivity agents to connect securely to the Switch server.
You can split flows into multiple callable flows. However, for simplicity, the following tasks describe how to create two flows only: a calling flow and a callable flow.
Procedure
To split the processing of your message flows, complete the following steps.
- Create your initial and callable flows. For more information, see Developing synchronously callable message flows.
- If your flows are split between integration servers, or between IBM Integration Bus and IBM App Connect on IBM Cloud, configure connectivity between the flows. For more information, see Preparing the environment for callable flows.