Properties
The definition of the container to run. Required if
script, shell and workflow have not been set.The definition of the script to run. Required if
container, shell and workflow have not been set.The definition of the shell command to run. Required if
container, script and workflow have not been set.The definition of the workflow to run. Required if
container, script and shell have not been set.Determines whether or not the process to run should be awaited for.When set to
false, the task cannot wait for the process to complete and thus cannot output the process’s result. In this case, it should simply output its transformed input.Configures the output of the process.Supported values:
stdout- Outputs the content of the process STDOUTstderr- Outputs the content of the process STDERRcode- Outputs the process’s exit codeall- Outputs the exit code, STDOUT content and STDERR content, wrapped into a new processResult objectnone- Does not output anything
Container Process
Enables the execution of external processes encapsulated within a containerized environment.Properties
The name of the container image to run.
A runtime expression, if any, used to give specific name to the container.
The command, if any, to execute on the container.
The container’s port mappings, if any.
The container’s volume mappings, if any.
A key/value mapping of the environment variables, if any, to use when running the configured process.
A runtime expression, if any, passed as standard input to the command or default container CMD.
A list of the arguments, if any, passed as argv to the command or default container CMD.
An object used to configure the container’s lifetime.
Policy that controls how the container’s image should be pulled from the registry.
When a container process is executed, runtime implementations are recommended to follow a predictable naming convention for the container name. This can improve monitoring, logging, and container lifecycle management.The Serverless Workflow specification recommends using the following convention:
{workflow.name}-{uuid}.{workflow.namespace}-{task.name}Example
Script Process
Enables the execution of custom scripts or code within a workflow.Properties
The language of the script to run.Supported values:
js (ES2024), python (3.13.x)The script’s code. Required if
source has not been set.The script’s resource. Required if
code has not been set.A runtime expression, if any, to pass to the script as standard input (stdin).
A list of the arguments, if any, to pass to the script as argv.
A key/value mapping of the environment variables, if any, to use when running the configured script process.
Example
Shell Process
Enables the execution of shell commands within a workflow.Properties
The shell command to run.
A runtime expression, if any, to pass to the shell command as standard input (stdin).
A list of the arguments, if any, to pass to the shell command as argv.
A key/value mapping of the environment variables, if any, to use when running the configured process.
Example
Workflow Process
Enables the invocation and execution of nested workflows within a parent workflow.Properties
The name of the workflow to run.
The version of the workflow to run.
The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow’s input schema, if specified.