name: Fill out scores

# title: Determines the title to show to the user when loooking at the task
# It's different to the name that it accepts variables
title: Fill out scores for {{candidate.firstName}} {{candidate.lastName}} - {{candidate.email}}

rows:
  # a row element can be a group
  - _group: summary
  # or a _title
  - _title: Scores
  # or a _statement
  - _statement: Please enter the candidate scores
  # or the fields
  - iqScore
  - englishScore
  - handsOnScore

# a form can have actions. This is optional
# object, optional
outcomes:
  # an action has a key (that should follow the identifier pattern)
  # it can be a string (that should follow the name pattern)
  approve: Approve

  # or it can be an object, with the following attributes:
  reject:
    # title: It should be a name, required
    title: Reject

    # form: It determines the form to show when they choose this option.
    # object, required
    # it should validate against the form schema.
    form:
      rows:
        - rejectReason