I have splitter message that split one original message become 3 part. And i need to send it sequentially via http outbound gateway. For instance the step is will be like this.
- A message called A splitted into (A1.request,A2.request,A3.request)channels
- A1.request send to Rest Api server and return response A1.response channel
- Use A1.response channel for conditional value, if it return success then send A2.request to different url.
- Then use A2.response channel as conditional value, if it return success then send A3.request to different url.
- Collect all the reply channels (A1.response,A2.response,A3.response) to construct conditional output for next step.
How the best way to achieve that? thanks in advance.