Implementing the error sequence user exit
You can configure the Service Definition Framework to call a user exit that checks for prior errors for the exception group to which the API belongs. This user exit is called before any processing of the message starts.
A Java™ interface is supplied for its implementation. This interface definition is in the com.yantra.interop.japi.YIFErrorSequenceUE class. The user exit computes the Message Key based on user defined custom code.
YIFErrorSequenceUE defines two functions. The function definitions are:
1) public Document getExceptionGroupReference(Document document, String apiName)
throws Exception
2) public void setExceptionGroupFinder (YIFExceptionGroupFinder finder)
The getExceptionGroupReference() function takes two parameters:
- Document - The input XML document retrieved by the Integration Adapter
- String - The API for which the Integration Adapter retrieved the XML
The setExceptionGroupFinder() function sets the YIFExceptionGroupFinder() interface. Use the implementation of this interface to retrieve the exceptionGroupId if prior errors exist.
An example implementation of this function is:
public void setExceptionGroupFinder (YIFExceptionGroupFinder finder){
this.finder = finder;
}