Create a fault policy file for example, named fault-policies.xml. This file

11-10 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Table 11–2 Use of action Section in the Fault Policy File Recovery Actions Fault Policy File Syntax Retry: Provides the following actions for retrying the activity. ■ Retry a specified number of times. ■ Provide a delay between retries in seconds. ■ Increase the interval with an exponential back off. ■ Chain to a retry failure action if retry N times fails. ■ Chain to a retry success action if a retry is successful. Note: Exponential back off indicates the next retry attempt is scheduled at 2 x the delay, where delay is the current retry interval. For example, if the current retry interval is 2 seconds, the next retry attempt is scheduled at 4, the next at 8, and the next at 16 seconds until the retryCount value is reached. Action id=ora-retry Retry retryCount3retryCount retryInterval2retryInterval exponentialBackoff retryFailureAction ref=ora-java retrySuccessAction ref=ora-java Retry Action Note the following details: ■ The framework chains to the retry success action if the retry attempt is successful. ■ If all retry attempts fail, the framework chains to the retry failure action. Human Intervention: Causes the current activity to stop processing. You can now go to Oracle Enterprise Manager Fusion Middleware Control and perform manual recovery actions on this instance. Action id=ora-human-intervention humanInterventionAction Terminate Process: Terminates the process Action id=ora-terminateabortAction Java Code: Enables you to execute an external Java class. returnValue: The implemented Java class must implement a method that returns a string. The policy can chain to a new action based on the returned string. For additional information, see Section 11.4.3, How to Use a Java Action Fault Policy. Action id=ora-java -- this is user provided custom java class-- javaAction className=mypackage.myClass defaultAction=ora-terminate returnValue value=REPLAY ref=ora-terminate returnValue value=RETRHOW ref=ora-rethrow-fault returnValue value=ABORT ref=ora-terminate returnValue value=RETRY ref=ora-retry returnValue value=MANUAL ref=ora-human-intervention javaAction Action Rethrow Fault: The framework sends the fault to the BPEL fault handlers catch activities in scope activities. If none are available, the fault is sent up. Action id=ora-rethrow-faultrethrowFaultAction Replay Scope: Raises a replay fault. Action id=ora-replay-scopereplayScopeAction