Without appropriate Error-Handling logic, the first fault thrown by a service invocation within any one of the Split-Join's threads will re-raise in the Split-Join and halt the entire message flow.
In order to prevent this, Catch clauses need to be added to the scope of each thread as shown next.
label
it with the name of the fault you wish to catch and then review the Properties tab.soapFault
which should be fine).Catch All
clause to the loop to capture any unexpected faults.Fault handling within a Split-Join in OSB is very similar to fault handling in proxy services. One simply has to define a Catch
block for the appropriate scope and mitigate each fault appropriately.
By handling faults within the For
loop, we ensure that each of the individual threads is managed separately, without impacting the rest of the batch.