Suppressing the Selection Failure exception in Assign activity – Oracle SOA Suite
This post will explain how to suppress the Selection Failure exception BPEL Assign activity – Oracle SOA SuiteIn BPEL Assign activity if the xpath returns empty result then SelectionFailure RuntimeFault will be thrown by the engine.
But some cases we may need to suppress the selectionFailure error while assigning the optional elements.
In my case I have a assign activity that will mapthe elements input and input1 from inputVariable to result and result1 of outputVariable.
The input2 is optional and somecases input2 element will not be available in the request payload.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sup="http://xmlns.oracle.com/Application1/SuppressSelectionFailure/SuppressSelectionFailure">
<soapenv:Header/>
<soapenv:Body>
<sup:process>
<sup:input>?</sup:input>
</sup:process>
</soapenv:Body>
</soapenv:Envelope>