ServiceProcessPreProcessorResponse Class
The ServiceProcessPreProcessorResponse class defines the response type
of the processServiceProcessRequest method in the ServiceProcessRequestPreProcessor
interface.
Namespace
ServiceProcessPreProcessorResponse Methods
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.
Signature
global ServiceProcessPreProcessorResponse(String errorMessage, boolean isSuccessful, industriesserviceprocess.ServiceProcessPreProcessorErrorTypes errorType)
Parameters
- 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.
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)
Parameters
- isSuccessful
- Type: Boolean
- Indicates whether the ServiceProcessRequestPreProcessor.processServiceProcessRequest() method is successful. Set this parameter to true if the custom validation succeeds.
Return Value
Type: ServiceProcessPreProcessorResponse object