ServiceProcessRequestPreProcessor Interface

Implement the ServiceProcessRequestPreProcessor interface to create a preprocessor class that transforms and validates data for custom attributes in the Service Catalog Connect REST API. Using a preprocessor is optional.

industriesserviceprocess

The following are methods for ServiceProcessRequestPreProcessor.

Transforms and validates Case attributes or service request attributes. The processServiceProcessRequest is an abstract method.

ServiceProcessPreProcessorResponse processServiceProcessRequest(String serviceProcessDefId, Map<String, Object> caseInfo, Map<String, Object> serviceProcessAttrs)

serviceProcessDefId

Type: String

Represents the Developer Name of the service request.

caseInfo

Type: Map<String,Object>

Represents Case attributes in the input payload in key-value pair format.

serviceProcessAttrs

Type: Map<String,Object>

Represents service request attributes in the input payload in key-value pair format.

Type: ServiceProcessPreProcessorResponse object

This is an example implementation of the industriesserviceprocess.ServiceProcessRequestPreProcessor interface.