Skip to content

Add titles to tasks #919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ properties:
description: Schedules the workflow
$defs:
taskList:
title: TaskList
type: array
items:
type: object
Expand Down Expand Up @@ -314,6 +315,7 @@ $defs:
additionalProperties: true
description: A name/value mapping of the parameters, if any, to call the function with.
forkTask:
title: ForkTask
description: Allows workflows to execute multiple tasks concurrently and optionally race them against each other, with a single possible winner, which sets the task's output.
$ref: '#/$defs/taskBase'
type: object
Expand All @@ -331,6 +333,7 @@ $defs:
type: boolean
default: false
doTask:
title: DoTask
description: Allows to execute a list of tasks in sequence
$ref: '#/$defs/taskBase'
type: object
Expand All @@ -340,6 +343,7 @@ $defs:
do:
$ref: '#/$defs/taskList'
emitTask:
title: EmitTask
description: Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.
$ref: '#/$defs/taskBase'
type: object
Expand Down Expand Up @@ -377,6 +381,7 @@ $defs:
additionalProperties: true
required: [ event ]
forTask:
title: ForTask
description: Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.
$ref: '#/$defs/taskBase'
type: object
Expand Down Expand Up @@ -404,6 +409,7 @@ $defs:
do:
$ref: '#/$defs/taskList'
listenTask:
title: ListenTask
description: Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.
$ref: '#/$defs/taskBase'
type: object
Expand All @@ -418,6 +424,7 @@ $defs:
description: Defines the event(s) to listen to.
required: [ to ]
raiseTask:
title: RaiseTask
description: Intentionally triggers and propagates errors.
$ref: '#/$defs/taskBase'
type: object
Expand All @@ -432,6 +439,7 @@ $defs:
description: Defines the error to raise.
required: [ error ]
runTask:
title: RunTask
description: Provides the capability to execute external containers, shell commands, scripts, or workflows.
$ref: '#/$defs/taskBase'
type: object
Expand Down Expand Up @@ -540,6 +548,7 @@ $defs:
required: [ workflow ]
description: Enables the invocation and execution of nested workflows within a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.
setTask:
title: SetTask
description: A task used to set data
$ref: '#/$defs/taskBase'
type: object
Expand All @@ -552,6 +561,7 @@ $defs:
additionalProperties: true
description: The data to set
switchTask:
title: SwitchTask
description: Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria
$ref: '#/$defs/taskBase'
type: object
Expand Down Expand Up @@ -579,6 +589,7 @@ $defs:
$ref: '#/$defs/flowDirective'
description: The flow directive to execute when the case matches.
tryTask:
title: TryTask
description: Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.
$ref: '#/$defs/taskBase'
type: object
Expand Down Expand Up @@ -610,6 +621,7 @@ $defs:
description: The definition of the task(s) to run when catching an error.
$ref: '#/$defs/taskList'
waitTask:
title: WaitTask
description: Allows workflows to pause or delay their execution for a specified period of time.
$ref: '#/$defs/taskBase'
type: object
Expand Down
Loading