Skip to main content
Process one or many decision components.

Arguments

input
required
mutation processDecisionComponents($input: ProcessDecisionComponentsInput!) {
  processDecisionComponents(input: $input) {
    errors {
      ... on BadRequestError {
        advice
        code
        message
      }
      ... on ForbiddenError {
        advice
        code
        message
      }
      ... on InvalidActorError {
        advice
        code
        message
      }
      ... on InvalidOrganizationError {
        advice
        code
        message
      }
      ... on NotFoundError {
        advice
        code
        message
        resourceName
        resourceId
      }
      ... on ServerError {
        advice
        code
        message
      }
      ... on AcceptorApplicationFieldValidationError {
        message
        code
        field
      }
      ... on AcceptorApplicationStakeholderFieldValidationError {
        message
        code
        field
        stakeholderId
      }
      ... on AcceptorApplicationValidationError {
        message
        code
      }
      ... on AcceptorApplicationBankAccountFieldValidationError {
        message
        code
        field
        bankAccountId
      }
      ... on UnderwritingApplicationBankAccountFieldValidationError {
        message
        code
        field
        bankAccountId
      }
      ... on UnderwritingApplicationFieldValidationError {
        message
        code
        field
      }
      ... on UnderwritingApplicationStakeholderFieldValidationError {
        message
        code
        field
        stakeholderId
      }
      ... on UnderwritingApplicationValidationError {
        message
        code
      }
    }
    decisionComponents {
      schema {
        underwritingDecisionComponentItemSchemas {
          underwritingDecisionComponentFieldSchemas {
            id
            fieldType
            label
            helperText
            isReadOnly
            isRequired
            isDisabled
            associatedApplicationField
            selectFieldOptions {
              ...SelectFieldOptionFragment
            }
          }
          id
          label
        }
        id
        label
      }
      items {
        outcomes {
          results {
            displayOrder
            label
            statusGuidance
            guidance
          }
          reviews {
            createdDate
            lastUpdatedDate
            fields {
              ...DecisionComponentReviewFieldFragment
            }
            label
          }
        }
        fields {
          schema {
            id
            fieldType
            label
            helperText
            isReadOnly
            isRequired
            isDisabled
            associatedApplicationField
            selectFieldOptions {
              ...SelectFieldOptionFragment
            }
          }
          fieldValue
          sensitiveFields {
            fieldValue
          }
          lastUpdatedBy {
            name
            type
          }
          id
          status
          displayOrder
          updatedDateTime
        }
        id
        stakeholderId
        label
        descriptiveText
        status
        displayOrder
      }
      hasAttachments
      hasComments
      attachments {
        uploadedBy {
          name
          type
        }
        id
        fileName
        uploadedDateTime
        size
      }
      comments {
        createdBy {
          name
          type
        }
        decisionComponent {
          schema {
            underwritingDecisionComponentItemSchemas {
              ...UnderwritingDecisionComponentItemSchemaFragment
            }
            id
            label
          }
          items {
            outcomes {
              ...DecisionComponentOutcomesFragment
            }
            fields {
              ...DecisionComponentFieldFragment
            }
            id
            stakeholderId
            label
            descriptiveText
            status
            displayOrder
          }
          hasAttachments
          hasComments
          attachments {
            uploadedBy {
              ...ActorFragment
            }
            id
            fileName
            uploadedDateTime
            size
          }
          comments {
            createdBy {
              ...ActorFragment
            }
            decisionComponent {
              ...DecisionComponentFragment
            }
            lastUpdatedBy {
              ...ActorFragment
            }
            id
            content
            createdDateTime
            updatedDateTime
          }
          lastUpdatedBy {
            name
            type
          }
          id
          status
          updatedDateTime
        }
        lastUpdatedBy {
          name
          type
        }
        id
        content
        createdDateTime
        updatedDateTime
      }
      lastUpdatedBy {
        name
        type
      }
      id
      status
      updatedDateTime
    }
  }
}

Response

Returns a ProcessDecisionComponentsPayload
{
  "data": {
    "processDecisionComponents": {
      "errors": [
        BadRequestError
      ],
      "decisionComponents": [
        DecisionComponent
      ]
    }
  }
}