Task Types
The Serverless Workflow DSL defines a list of tasks that must be supported by all runtimes:Call
Call services and/or functions
Do
Execute subtasks in sequence
Emit
Publish events to brokers
For
Iterate over collections
Fork
Execute subtasks concurrently
Listen
Wait for external events
Raise
Raise errors and fault workflows
Run
Execute containers, scripts, shells, or workflows
Set
Set workflow data dynamically
Switch
Conditional branching logic
Try
Handle errors gracefully with retries
Wait
Pause execution for a duration
Common Task Properties
All tasks share the following common properties:A runtime expression used to determine whether or not the task should be run. The task is considered skipped if not run, and the raw task input becomes the task’s output.
An object used to customize the task’s input and to document its schema, if any.
An object used to customize the task’s output and to document its schema, if any.
An object used to customize the content of the workflow context.
The configuration of the task’s timeout, if any. If a string, must be the name of a timeout defined in the workflow’s reusable components.
The flow directive to execute next. If not set, defaults to
continue.Additional information about the task.