What is fault handler?

What is fault handler?

Fault handlers allow you to catch faults or exceptions and create fault-handling procedures to deal with potential runtime errors in your process definitions. Fault handlers are defined at the scope level, allowing you to catch faults or exceptions thrown by activities within a scope.

Where can a fault handler attached in a process?

Each fault handler contains an activity that runs in case of an error. For example, a partner service is notified if an error has occurred. Fault handlers can be added to the entire process or to individual Scope elements. You can attach one Fault Handler container to either the Process or the Scope elements.

Where can a fault handler be attached in a process choose two?

Fault handlers can be defined at the process level, or at a scope level within a process. The diagram below shows two fault handlers – one defined at the process level and the other defined at an inner scope level.

How is fault handling used in a BPEL process?

Fault handling allows a BPEL process service component to handle error messages or other exceptions returned by outside web services, and to generate error messages in response to business or runtime faults.

How are fault handlers used in SOA composite application?

For additional information on creating fault handling in a SOA composite application, see the Fusion Order Demo application. Fault handlers define how the BPEL process service component responds when web services return data other than what is normally expected (for example, returning an error message instead of a number).

What are the policy bindings in BPEL process?

There is a policy binding specified in the fault-binding.xml file: BPEL process or Oracle Mediator service component or reference binding component binds to policy-id-2 In the fault-bindings.xml file, the following bindings are also specified:

Which is an example of a fault handler?

An example of a fault handler is where the web service normally returns a credit rating number, but instead returns a negative credit message. Figure 12-1 provides an example of how a fault handler sets a credit rating variable to -1000. The code segment in the following example defines the fault handler for this operation in the BPEL file: