Introduction to Error Handling for Business Faults Introduction to Error Handling for BPEL and Mediator System Faults

13-4 Infrastructure Components and Utilities Users Guide ■ System faults System faults occur as a result of problems within the running of the BPEL process or Mediator service component. For example, data cannot be copied properly because the variable name is incorrect or because of transformation errors. Error actions for system faults are configured using the Composite Fault Policy Framework. Error notifications and logging for system faults are handled by oracle.apps.aia.core.eh.CompositeJavaAction.

13.2 Introduction to Error Handling for Business Faults

This section discusses error handling for two types of business faults: ■ Local business faults ■ Remote business faults Local Business Faults If a BPEL process or Mediator component needs to issue a business error, such as a validation error, the process must be developed to issue the error explicitly, catch it in a catch block, and invoke the AIAAsyncErrorHandlingBPELProcess. The input to the process is a fault message in the AIA fault message schema. This is also true for business errors for Oracle Data Integrator, Oracle Service Bus, third-party B2B, and other external systems that want to leverage the AIA Error Handling and Logging framework. Remote Business Faults If an invoked service or application responds to a request with a business fault, the Oracle SOA Suite captures these types of errors using the Composite Fault Policy Framework. The AIA Error Handling framework provides a custom Java action, oracle.apps.aia.core.eh.CompositeJavaAction, which can be configured as the Java action for all policies. By configuring fault policies to include this Java action, the AIA Error Handling framework can perform all necessary error logging and notifications. For more information, see Configuring Oracle AIA Processes for Error Handling and Trace Logging in Oracle Fusion Middleware Developers Guide for Oracle Application Integration Architecture Foundation Pack.

13.3 Introduction to Error Handling for BPEL and Mediator System Faults

These types of errors are captured using the Composite Fault Policy Framework. The AIA Error Handling framework provides a custom Java action, oracle.apps.aia.core.eh.CompositeJavaAction, which can be configured as the Java action for all policies. By configuring fault policies to include this Java action, the AIA Error Handling framework can perform all necessary error logging and notifications. For more information, see Configuring Oracle AIA Processes for Error Handling and Trace Logging in Oracle Fusion Middleware Developers Guide for Oracle Application Integration Architecture Foundation Pack . For more information about the Composite Fault Policy framework, see Using Fault Handling in a BPEL Process in Oracle Fusion Middleware Developers Guide for Oracle SOA Suite. Introduction to Oracle AIA Error Handling 13-5

13.4 Introduction to Error Handling for Oracle B2B Errors