← Workflow Academy

Workflow Academy · 2 / 5

Require a usable job

Give callers a clear input contract before routing starts.

YOUR TASK

Make this happen

3 steps
  1. Add an inputSchema requiring string jobId and integer copies with minimum 1. Preserve preparation.

  2. Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.

  3. Check the complete solution, then inspect any unmet requirements.

This step starts with the earlier solution and one new challenge. Each lesson keeps its own draft.

Read the starter files

main.cococo

workflow_document "main" {
  nodes = [workflow_node.prepare]
  edges = []
}

prepare.cococo

workflow_node "prepare" {
  id = "prepare"
  type = "transform"
  config = {
    mapping = {
      copies = "{{ input.copies }}"
      jobId = "{{ input.jobId }}"
    }
  }
}
Supplied supporting files

Reference: workflows · introductionworkflows · getting-startedworkflows · valuesworkflows · branchesworkflows · scriptsworkflows · node-formsworkflows · publicationworkflows · diagnosticsworkflows · referenceworkflows · node-reference