Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ServiceProcessPreProcessorResponse Class
Namespace
ServiceProcessPreProcessorResponse Methods
The following are constructors for ServiceProcessRequestPreProcessor.
ServiceProcessPreProcessorResponse(errorMessage, isSuccessful, errorType)
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)
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