Faults that arise in a Mediator can be handled using the Fault Policy Framework. Refer to the previous chapter (Chapter 6, Advanced BPEL Concepts) to understand, in detail, the Fault Policy Framework. Mediator faults are identified using the http://schema.oracle.com/mediator/faults
namespace and the fault name as mediatorFault
from the same namespace.
The following XML snippet shows the sample fault policy for handling Mediator faults:
<?xml version="1.0" encoding="UTF-8"?> <faultPolicies> <faultPolicy version="1.0" id="MediatorFaultPolicies"> <Conditions> <faultName xmlns:medns="http://schemas.oracle.com/mediator/faults" name="medns:mediatorFault"> <condition> <test>contains($fault.mediatorErrorCode, "TYPE_ALL")</test> <action ref="ora-retry"/> </condition> </faultName> </Conditions> <Actions> <Action id="ora-retry"> <retry> <retryCount>3</retryCount> <...