Custom Extensions to AIA Error Handling
By Rohit Agarwal on Mar 07, 2009
Robust error handling is an integral requirement for all integrations. AIA Error Handling Framework allows capturing any error happening in the integration scenario in a consistent manner. However, there are scenarios when it is not sufficient to capture the error message but we also need to capture the specific details of the failed business message, such as the Order Processing scenario where there is a need to capture the details of the failed orders and log tickets in the Trouble Ticket application. This can now be achieved with extending the AIA fault message and have custom processing on certain failed messages.
Foundation Pack 2.3 comes with enhanced capabilities to extend Error Handling Framework. The extensions target two key areas:
1. Fault Handler Extension and enrichment of Fault Message
AIA Fault Message have a new element, ApplicationFaultData of type xsd:any. This can be used to hold any Fault Message enrichment as desired by the application context. For example, Order Fallout related information specific to a certain order. PIP implementations can extend the default AIA Fault Handler and plug-in their custom handlers to enrich the faults occurring in any scenarios.
2. Notifications Extension
Default AIA Error Handling Framework does email notifications and assign tasks on Error Console. At times there is a need to do something more such as pushing faulted instance details to custom trouble ticketing applications or to do custom notifications. Each PIP implementation requirements are varied and use cases have broad range.
Foundation Pack 2.3 provides the capability to stamp custom JMS Correlation IDs on each faulted message through simple UI interface. PIP Implementations can have custom listeners on AIA_ERROR JMS Topic to pick messages that need custom processing.
Detailed information can be found in AIA Foundation Pack 2.3 Guide