ServiceProcessPreProcessorResponse Class
The ServiceProcessPreProcessorResponse class defines the response type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface.
The following are constructors for ServiceProcessRequestPreProcessor.
-
ServiceProcessPreProcessorResponse(errorMessage, isSuccessful, errorType)
The return type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface, which can set a custom error message.
-
ServiceProcessPreProcessorResponse(isSuccessful)
The return type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface if there are no error messages.
The return type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface, which can set a custom error message.
global ServiceProcessPreProcessorResponse(String errorMessage, boolean isSuccessful, industriesserviceprocess.ServiceProcessPreProcessorErrorTypes errorType)
- errorMessage
Type: String
Represents a custom error message in case invocation of the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method results in an error or exception.
- isSuccessful
Type: Boolean
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.
Type: ServiceProcessPreProcessorResponse object
The return type of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor interface if there are no error messages.
global ServiceProcessPreProcessorResponse(boolean isSuccessful)
- isSuccessful
Type: Boolean
Indicates whether the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method is successful. Set this parameter to true if the custom validation succeeds.
Type: ServiceProcessPreProcessorResponse object