Both ideas sound good - my only question is with timing.
How much time does the IS give before deciding that the XOR is a go?
The two documents could arrive within seconds of each other, but obviously if the IS has already processed the first document, then it will process the second as well (deciding that the two didn’t arrive at the same time)
With Ray’s solution, it’s a similar problem, but this time it’ll wind up processing both documents, which we don’t want.
The situation is that document A is always correct, when it arrives, we want to use it’s data. Document B is slightly broken (but better than nothing) so when A and B both arrive, we definitely don’t want to process B, but if there’s no A, then processing B is much better than nothing.
I think the solution we’re going to go with is to try to “fix” document B’s data with direct database calls, and always use it, to avoid the timing issues. Ideally, we wouldn’t be dealing with broken documents in the first place, but unfortunatly we don’t have full control over the originating system
Thanks for the suggestions!
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods