The ServiceProcessPreProcessorResponse class defines the response type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface.
Represents a custom error message in case invocation of the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method results in an error or exception.
Indicates whether the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method is successful. Set this parameter to false if the custom validation fails.
errorType
Type: ServiceProcessPreProcessorErrorTypes
ServiceProcessPreProcessorErrorTypes is an enum with attributes NO_ERROR, GENERIC_ERROR, or VALIDATION_ERROR.
Return Value
Type: ServiceProcessPreProcessorResponse object
ServiceProcessPreProcessorResponse(isSuccessful)
The return type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface if there are no error messages.
Signature
global ServiceProcessPreProcessorResponse(boolean isSuccessful)
Indicates whether the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method is successful. Set this parameter to true if the custom validation succeeds.