Workflow Academy · 2 / 5
Require a usable job
Give callers a clear input contract before routing starts.
YOUR TASK
Make this happen
Add an inputSchema requiring string jobId and integer copies with minimum 1. Preserve preparation.
Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.
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