Input
Documents the structure and optionally configures the transformation of workflow/task input data.Properties
The schema used to describe and validate raw input data.Even though the schema is not required, it is strongly encouraged to document it, whenever feasible.See Schema for details.
A runtime expression, if any, used to filter and/or mutate the workflow/task input.
Behavior
When set, runtimes must validate raw input data against the defined schema before applying transformations, unless defined otherwise.Examples
Basic Input Schema
Input Transformation
Extract specific data from input:Complex Input Filtering
Output
Documents the structure and optionally configures the transformations of workflow/task output data.Properties
The schema used to describe and validate output data.Even though the schema is not required, it is strongly encouraged to document it, whenever feasible.See Schema for details.
A runtime expression, if any, used to filter and/or mutate the workflow/task output.
Behavior
When set, runtimes must validate output data against the defined schema after applying transformations, unless defined otherwise.Examples
Basic Output Schema
Output Transformation
Transform output to specific format:Merging Output with Input
Export
Certain tasks need to set the workflow context to save the task output for later usage. Users set the content of the context through a runtime expression.Properties
The schema used to describe and validate context.Included to handle the non-frequent case in which the context has a known format.
A runtime expression, if any, used to export the output data to the context.
Behavior
The result of the expression is the new value of the context. The expression is evaluated against the transformed task output.Examples
Merge Task Output into Context
Replace Context with Task Output
Export Specific Fields
Schema
Describes a data schema used for validation.Properties
The inline schema document.Required if
resource has not been set, otherwise ignored.The schema external resource.Required if
document has not been set, otherwise ignored.Examples
Inline JSON Schema
External Schema Resource
Schema with Authentication
Complete Examples
Workflow with Input/Output
Task with Input/Output/Export
Nested Schema Definition
Usage Notes
- Always document schemas whenever feasible to enable better tooling support
- Input schemas are validated before transformations
- Output schemas are validated after transformations
- Runtime expressions in
fromandasuse JQ syntax by default - The
exportconfiguration allows tasks to modify the workflow context - External schema resources support authentication for secure access
- Schema validation helps catch data issues early in workflow execution