Nilesh,
I can’t say that I would keep it in one or create several sub-flows.
You stated what you wanted and I gave it to you. So, to accomplish your particular task in FLOW, I gave you the scenario above.
There have been a couple of interjections for the use of java. You can do this easily.
Either, take a look at the java API docs, or, conversely, if you have the EDI package installed, look for a service called invoke.
This java service invoke I think also exists in the PSUtilities package.
In any case, it allows you to pass in the necessary parameters to a java service and invoke the service in a java flow.
Then, further leveraging the java API, You can perform an IDataUtil.merge. This will merge the output of the invoke service in case there is an error.
I’m really glossing over this because I do not have the code sitting directly in front of me at the moment.
It is not something to take lightly in any case because your architect starts small and you start building on that. It is far better to build a solid foundation than to pitch a tent and build walls around it.
In any case, I hope you find something that will work.
Also, you could use the broker to pub/sub to processes, evaluate the results and take action accordingly. You could easily patternize the work using broker and IS component.
Easy to say, much harder to do.
HTH,
Ray