key: processExample1
type: process
name: Start Recruitment
icon: person
mainTable: invitation
summary:
  title: Process for {{candidate.firstName}}
permissions:
  recruiter: true
  employee:
    start: true
    pause:
      own: true
    archive: false

  manager:
    start: true
    pause: true
fieldGroups:
  summary:
    readOnly: true

    rows:
      - [candidate, position]
      - comments

  summaryWithScores:
    readOnly: true
    rows:
      - _groups.summary
      - scores
forms:
  fillOutInvitationInformation:
    name: Start application
    rows:
      - candidate
      - position
      - comments

  fillOutScores:
    name: Fill out scores
    title: Fill out scores for {{candidate.firstName}} {{candidate.lastName}} - {{candidate.email}}

    rows:
      - _groups.summary
      - _title: Scores
      - _statement: Please enter the candidate scores
      - iqScore
      - englishScore
      - handsOnScore

  manualApproval1:
    name: Manual Approval 1
    rows:
      - _groups.summaryWithScores
      - approvalComments
    outcomes:
      approve: Approve
      reject:
        title: Reject
        form:
          rows:
            - rejectReason
