I have a Spring Integration Flow Project that exposes a Rest Gateway, after receiving the Rest POST request, it does some minor logic. Based on some Payload parameters I would like to Activate another Spring Integration flow dynamically and route the message to a designated channel in that flow that I can discover in the Primary flow based on the Payload. The Sub flow will put the response message in a designated channel that is defined in the primary flow.
How can I achieve this.