Payload Processing User Exit Interceptor Scripts

Conversion of data from custom and non-standard formats into the “native” format is performed via a pair of Groovy Library Scripts that are invoked via user exits during payload processing (see Custom Payload Processing Overview). The two scripts used in this process include a “parser” script, and a “transformer” script.

Parser Script

The “parser” script is responsible for parsing the incoming data and converting it into the Plain XML format. This script should include the getParser method that returns an instance of a class that implements the com.splwg.d1.domain.sgg.dg.processing.PayloadParser interface.

To view details of the PayloadParser interface in the Application Viewer, select the Java Docs Viewer, select the com.splwg.d1.domain.sgg.dg.processing Java package, and select PayloadParser from the list of interfaces.

The “parser” script should be defined for the “On Get Parser” Payload Processing User Exit Type in the User Exit Interceptors section on the SGG Payload Processing Configuration extendable lookup. See Creating SGG Payload Processing Extendable Lookup Values for more information.

The base package includes two sample parser scripts that can be used as examples when developing custom parser scripts. See Sample Implementation.

Transformer Script

The “transformer” script is responsible for converting data the Plain XML format into the “native” format. This script should include the getTransformer method that returns an instance of a class that implements the com.splwg.d1.domain.sgg.dg.processing.PayloadTransformer interface.

To view details of the PayloadTransformer interface in the Application Viewer, select the Java Docs Viewer, select the com.splwg.d1.domain.sgg.dg.processing Java package, and select PayloadTransformer from the list of interfaces.

The “transformer” script should be defined for the “On Get Transformer” Payload Processing User Exit Type in the User Exit Interceptors section on the SGG Payload Processing Configuration extendable lookup. See Creating SGG Payload Processing Extendable Lookup Values for more information.

The base package includes two sample transformer scripts that can be used as examples when developing custom transformer scripts. See Sample Implementation.