Workflow Academy · 3 / 5
Send large jobs for review
Route more than 100 copies to review and the rest to ready.
YOUR TASK
Make this happen
Add route, review and ready nodes plus edges. Route copies > 100 to review on true and ready on false; both retain the prepared jobId.
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 = []
inputSchema = {
type = "object"
properties = {
jobId = {
type = "string"
}
copies = {
type = "integer"
minimum = 1
}
}
required = ["jobId", "copies"]
}
}
prepare.cococo
workflow_node "prepare" {
id = "prepare"
type = "transform"
config = {
mapping = {
copies = "{{ input.copies }}"
jobId = "{{ input.jobId }}"
}
}
}
route.cococo
workflow_node "route" {
id = "route"
type = "condition"
config = {
# TODO: add the mapping/expression or script input described above.
}
}
review.cococo
workflow_node "review" {
id = "review"
type = "transform"
config = {
# TODO: add the mapping/expression or script input described above.
}
}
ready.cococo
workflow_node "ready" {
id = "ready"
type = "transform"
config = {
# TODO: add the mapping/expression or script input described above.
}
}
links.cococo
workflow_edge "prepare_route" {
# TODO: add from — see the task above.
# TODO: add to — see the task above.
}
workflow_edge "review" {
# TODO: add from — see the task above.
# TODO: add to — see the task above.
# TODO: add when — see the task above.
}
workflow_edge "ready" {
# TODO: add from — see the task above.
# TODO: add to — see the task above.
# TODO: add when — see the task above.
}
Supplied supporting files
Reference: workflows · introductionworkflows · getting-startedworkflows · valuesworkflows · branchesworkflows · scriptsworkflows · node-formsworkflows · publicationworkflows · diagnosticsworkflows · referenceworkflows · node-reference