Skip to content

Commit 7654925

Browse files
authored
Merge pull request serverlessworkflow#919 from matthias-pichler-warrify/task-titles
Add titles to tasks
2 parents 853d844 + 4f7e1c6 commit 7654925

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

schema/workflow.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ properties:
103103
description: Schedules the workflow
104104
$defs:
105105
taskList:
106+
title: TaskList
106107
type: array
107108
items:
108109
type: object
@@ -314,6 +315,7 @@ $defs:
314315
additionalProperties: true
315316
description: A name/value mapping of the parameters, if any, to call the function with.
316317
forkTask:
318+
title: ForkTask
317319
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.
318320
$ref: '#/$defs/taskBase'
319321
type: object
@@ -331,6 +333,7 @@ $defs:
331333
type: boolean
332334
default: false
333335
doTask:
336+
title: DoTask
334337
description: Allows to execute a list of tasks in sequence
335338
$ref: '#/$defs/taskBase'
336339
type: object
@@ -340,6 +343,7 @@ $defs:
340343
do:
341344
$ref: '#/$defs/taskList'
342345
emitTask:
346+
title: EmitTask
343347
description: Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.
344348
$ref: '#/$defs/taskBase'
345349
type: object
@@ -377,6 +381,7 @@ $defs:
377381
additionalProperties: true
378382
required: [ event ]
379383
forTask:
384+
title: ForTask
380385
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.
381386
$ref: '#/$defs/taskBase'
382387
type: object
@@ -404,6 +409,7 @@ $defs:
404409
do:
405410
$ref: '#/$defs/taskList'
406411
listenTask:
412+
title: ListenTask
407413
description: Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.
408414
$ref: '#/$defs/taskBase'
409415
type: object
@@ -418,6 +424,7 @@ $defs:
418424
description: Defines the event(s) to listen to.
419425
required: [ to ]
420426
raiseTask:
427+
title: RaiseTask
421428
description: Intentionally triggers and propagates errors.
422429
$ref: '#/$defs/taskBase'
423430
type: object
@@ -432,6 +439,7 @@ $defs:
432439
description: Defines the error to raise.
433440
required: [ error ]
434441
runTask:
442+
title: RunTask
435443
description: Provides the capability to execute external containers, shell commands, scripts, or workflows.
436444
$ref: '#/$defs/taskBase'
437445
type: object
@@ -540,6 +548,7 @@ $defs:
540548
required: [ workflow ]
541549
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.
542550
setTask:
551+
title: SetTask
543552
description: A task used to set data
544553
$ref: '#/$defs/taskBase'
545554
type: object
@@ -552,6 +561,7 @@ $defs:
552561
additionalProperties: true
553562
description: The data to set
554563
switchTask:
564+
title: SwitchTask
555565
description: Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria
556566
$ref: '#/$defs/taskBase'
557567
type: object
@@ -579,6 +589,7 @@ $defs:
579589
$ref: '#/$defs/flowDirective'
580590
description: The flow directive to execute when the case matches.
581591
tryTask:
592+
title: TryTask
582593
description: Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.
583594
$ref: '#/$defs/taskBase'
584595
type: object
@@ -610,6 +621,7 @@ $defs:
610621
description: The definition of the task(s) to run when catching an error.
611622
$ref: '#/$defs/taskList'
612623
waitTask:
624+
title: WaitTask
613625
description: Allows workflows to pause or delay their execution for a specified period of time.
614626
$ref: '#/$defs/taskBase'
615627
type: object

0 commit comments

Comments
 (0)