I have scenario where my publishing service is publishing the each records received from rest service.
start of service1
Call rest serviceA
Loop over response records
End of service1
Trigger is subscribing to the docs published. Call service2
In the subscribing service,
start of service2
process records map it the request doc
Post to rest serviceB
Branch on response
Exit from flow on failure - log failure in MWS as i have enabled audit logging.
end of service2
When Service1 publishes first doctype, Service2 process and gets response error from rest service B and exits the flow.
But then it is not processing the any next incoming document for this transactions.
Suppose service1 publishes 10 docs, service2 is processing only first records and rest all are not getting subscribed.
If i remove exit from flow step in subscribing service2 then everything works as expected.