How to implement Apache Camel Dynamic Router Pattern, for flow chart based execution process.
I have been through the links https://www.javainuse.com/camel/camel-dynamic-router-example, could not able to figure it out.
I want to create an API that processes all three steps.
1) First internally hits another API and get the response and transfer its response to the next stage i.e Database
2) The second step will perform the write operation to DB and route to different stage i.eResponse Handler
.
To conclude the above process, what I want to do is to create a different route for each stage and trigger or execute in a manner the process is defined.