You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The flow directive to be performed upon completion of the task.
127
+
task:
128
+
unevaluatedProperties: false
128
129
oneOf:
129
130
- $ref: '#/$defs/callTask'
130
131
- $ref: '#/$defs/doTask'
@@ -139,7 +140,9 @@ $defs:
139
140
- $ref: '#/$defs/tryTask'
140
141
- $ref: '#/$defs/waitTask'
141
142
callTask:
143
+
$ref: '#/$defs/taskBase'
142
144
type: object
145
+
unevaluatedProperties: false
143
146
oneOf:
144
147
- properties:
145
148
call:
@@ -284,9 +287,11 @@ $defs:
284
287
description: A name/value mapping of the parameters, if any, to call the function with.
285
288
required: [ call ]
286
289
branchTask:
290
+
description: Allows to execute multiple tasks concurrently.
291
+
$ref: '#/$defs/taskBase'
287
292
type: object
288
293
required: [ branch ]
289
-
description: Allows to execute multiple tasks concurrently.
294
+
unevaluatedProperties: false
290
295
properties:
291
296
branch:
292
297
type: object
@@ -299,14 +304,20 @@ $defs:
299
304
type: boolean
300
305
default: false
301
306
doTask:
307
+
$ref: '#/$defs/taskBase'
302
308
type: object
303
309
required: [ do ]
310
+
unevaluatedProperties: false
304
311
description: Allows to execute multiple tasks sequentially.
305
312
properties:
306
313
do:
307
314
$ref: '#/$defs/taskList'
308
315
emitTask:
316
+
description: Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.
317
+
$ref: '#/$defs/taskBase'
309
318
type: object
319
+
required: [ emit ]
320
+
unevaluatedProperties: false
310
321
properties:
311
322
emit:
312
323
type: object
@@ -338,17 +349,12 @@ $defs:
338
349
required: [ source, type ]
339
350
additionalProperties: true
340
351
required: [ event ]
341
-
required: [ emit ]
342
-
description: Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.
343
-
flowDirective:
344
-
additionalProperties: false
345
-
anyOf:
346
-
- type: string
347
-
enum: [ continue, exit, end ]
348
-
default: continue
349
-
- type: string
350
352
forTask:
353
+
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.
354
+
$ref: '#/$defs/taskBase'
351
355
type: object
356
+
required: [ for, do ]
357
+
unevaluatedProperties: false
352
358
properties:
353
359
for:
354
360
type: object
@@ -370,10 +376,12 @@ $defs:
370
376
description: A runtime expression that represents the condition, if any, that must be met for the iteration to continue.
371
377
do:
372
378
$ref: '#/$defs/taskList'
373
-
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.
374
-
required: [ for, do ]
375
379
listenTask:
380
+
description: Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.
381
+
$ref: '#/$defs/taskBase'
376
382
type: object
383
+
required: [ listen ]
384
+
unevaluatedProperties: false
377
385
properties:
378
386
listen:
379
387
type: object
@@ -382,10 +390,12 @@ $defs:
382
390
$ref: '#/$defs/eventConsumptionStrategy'
383
391
description: Defines the event(s) to listen to.
384
392
required: [ to ]
385
-
required: [ listen ]
386
-
description: Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.
387
393
raiseTask:
394
+
description: Intentionally triggers and propagates errors.
395
+
$ref: '#/$defs/taskBase'
388
396
type: object
397
+
required: [ raise ]
398
+
unevaluatedProperties: false
389
399
properties:
390
400
raise:
391
401
type: object
@@ -394,10 +404,12 @@ $defs:
394
404
$ref: '#/$defs/error'
395
405
description: Defines the error to raise.
396
406
required: [ error ]
397
-
required: [ raise ]
398
-
description: Intentionally triggers and propagates errors.
399
407
runTask:
408
+
description: Provides the capability to execute external containers, shell commands, scripts, or workflows.
409
+
$ref: '#/$defs/taskBase'
400
410
type: object
411
+
required: [ run ]
412
+
unevaluatedProperties: false
401
413
properties:
402
414
run:
403
415
type: object
@@ -488,20 +500,24 @@ $defs:
488
500
required: [ namespace, name, version ]
489
501
required: [ workflow ]
490
502
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.
491
-
required: [ run ]
492
-
description: Provides the capability to execute external containers, shell commands, scripts, or workflows.
493
503
setTask:
504
+
description: A task used to set data
505
+
$ref: '#/$defs/taskBase'
494
506
type: object
507
+
required: [ set ]
508
+
unevaluatedProperties: false
495
509
properties:
496
510
set:
497
511
type: object
498
512
minProperties: 1
499
513
additionalProperties: true
500
514
description: The data to set
501
-
required: [ set ]
502
-
description: A task used to set data
503
515
switchTask:
516
+
description: Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria
517
+
$ref: '#/$defs/taskBase'
504
518
type: object
519
+
required: [ switch ]
520
+
unevaluatedProperties: false
505
521
properties:
506
522
switch:
507
523
type: array
@@ -522,10 +538,12 @@ $defs:
522
538
then:
523
539
$ref: '#/$defs/flowDirective'
524
540
description: The flow directive to execute when the case matches.
525
-
required: [ switch ]
526
-
description: Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria
527
541
tryTask:
542
+
description: Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.
543
+
$ref: '#/$defs/taskBase'
528
544
type: object
545
+
required: [ try, catch ]
546
+
unevaluatedProperties: false
529
547
properties:
530
548
try:
531
549
description: The task(s) to perform.
@@ -550,16 +568,23 @@ $defs:
550
568
do:
551
569
description: The definition of the task(s) to run when catching an error.
552
570
$ref: '#/$defs/taskList'
553
-
required: [ try, catch ]
554
-
description: Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.
555
571
waitTask:
572
+
description: Allows workflows to pause or delay their execution for a specified period of time.
573
+
$ref: '#/$defs/taskBase'
556
574
type: object
575
+
required: [ wait ]
576
+
unevaluatedProperties: false
557
577
properties:
558
578
wait:
559
-
$ref: '#/$defs/duration'
560
579
description: The amount of time to wait.
561
-
required: [ wait ]
562
-
description: Allows workflows to pause or delay their execution for a specified period of time.
0 commit comments