Interface WorkflowTaskItemVerdictInput.Builder

Enclosing interface:
WorkflowTaskItemVerdictInput

public static interface WorkflowTaskItemVerdictInput.Builder
Builder to create a WorkflowTaskItemVerdictInput.
  • Method Details

    • withRecord

      WorkflowTaskItemVerdictInput.Builder withRecord(String objectName, String recordId)
      Optional: Sets the object and record ID.
      Parameters:
      objectName - object workflows provide the object name
      recordId - object workflows provide the record ID
      Returns:
      this builder
    • withDocumentVersion

      WorkflowTaskItemVerdictInput.Builder withDocumentVersion(String documentVersionId)
      Optional: Sets the document version ID.
      Parameters:
      documentVersionId - the document version ID; must be associated with this workflow task
      Returns:
      this builder
    • withInputParameters

      WorkflowTaskItemVerdictInput.Builder 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.

      Note: Do not provide capacity here. Instead, you must provide it as an input parameter in a WorkflowTaskInput.

      Parameters:
      key - name value returned in WorkflowParameterMetadata
      value - required value based on metadata returned in WorkflowParameterMetadata or WorkflowTaskPromptOptions
      Returns:
      this builder
    • build

      Returns:
      this built WorkflowTaskItemVerdictInput