Condition
Last updated
Last updated
A condition
is a partial validation for a task. Conditions can be used to split up bigger task into smaller pieces, allowing for more granular feedback to users.
Attributes are the properties of a resource that can be used to configure it.
Name id
required
string
Description description
required
string
The description of the condition. This will be visible on the task in the frontend.
Config config
Configuration for the condition. This configuration will be used for all scripts within the condition. This overrides the configuration for the task.
Checks check
required
The checks that need to be executed successfully in order for the condition to pass. Check scripts are triggered when a task is validated.
Solves solve
required
The solve scripts that are executed when skipping the condition.
Setups setup
required
The setup scripts that are executed when unlocking the condition.
Cleanups cleanup
required
The cleanup scripts that are executed when the condition is completed or skipped.
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.