Package com.veeva.vault.sdk.api.workflow
Interface WorkflowTaskItemVerdictInput.Builder
- Enclosing interface:
- WorkflowTaskItemVerdictInput
public static interface WorkflowTaskItemVerdictInput.Builder
Builder to create a
WorkflowTaskItemVerdictInput.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theWorkflowTaskItemVerdictInput.withDocumentVersion(String documentVersionId) Optional: Sets the document version ID.withInputParameters(String key, Object value) Required: Sets the input parameter key and value to complete the task configured with inputs that apply to the individual document version or object record in the request.withRecord(String objectName, String recordId) Optional: Sets the object and record ID.
-
Method Details
-
withRecord
Optional: Sets the object and record ID.- Parameters:
objectName- object workflows provide the object namerecordId- object workflows provide the record ID- Returns:
- this builder
-
withDocumentVersion
Optional: Sets the document version ID.- Parameters:
documentVersionId- the document version ID; must be associated with this workflow task- Returns:
- this builder
-
withInputParameters
Required: Sets the input parameter key and value to complete the task configured with inputs that apply to the individual document version or object record in the request.Note: Do not provide capacity here. Instead, you must provide it as an input parameter in a
WorkflowTaskInput.- Parameters:
key- name value returned in WorkflowParameterMetadatavalue- required value based on metadata returned in WorkflowParameterMetadata or WorkflowTaskPromptOptions- Returns:
- this builder
-
build
WorkflowTaskItemVerdictInput build()Builds theWorkflowTaskItemVerdictInput.- Returns:
- this built
WorkflowTaskItemVerdictInput
-