Interface QualityOneCoaEmailIntakeHandler
- All Superinterfaces:
com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<QualityOneCoaEmailIntakeHandlerContext>
public interface QualityOneCoaEmailIntakeHandler
extends com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<QualityOneCoaEmailIntakeHandlerContext>
Executes custom logic to build the COA Inspection record.
Invoked in the Supplier Initiated COA Email Processor.
-
Method Summary
Modifier and TypeMethodDescriptionInvokes the Supplier Initiated COA Email Processor to process an email received by the Vault Email Service.
-
Method Details
-
execute
Invokes the Supplier Initiated COA Email Processor to process an email received by the Vault Email Service. Expects setting theQualityOneCoaEmailIntakeHandlerResponse
object with aQualityOneIntakeInspection
object using theQualityOneCoaEmailIntakeHandlerResponse.Builder.withIntakeInspection(QualityOneIntakeInspection)
to process the COA email intake. This involves referencingQualityOneIntakeInspection
to create COA Inspection object records. WithQualityOneIntakeInspection
set on the context, this is expected to be set with an Inspection Plan. If there are failures in identifying the Inspection Plan or errors occurring on theQualityOneIntakeInspection
, then this should be set with a COA Ingestion Status and COA Ingestion Error Type instead.- Parameters:
context
- contextual (QualityOneCoaEmailIntakeHandlerContext
) information for the Supplier Initiated COA Email Processor- Returns:
- the
QualityOneCoaEmailIntakeHandlerResponse
output response
-