Skip to content

Commit be707ad

Browse files
authored
Merge pull request #996 from neuroglia-io/feat-add-metadata
Add a new `metadata` property to the workflow document and to tasks
2 parents 7539516 + ff2e7da commit be707ad

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dsl-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Documents the workflow definition.
9191
| title | `string` | `no` | The workflow's title. |
9292
| summary | `string` | `no` | The workflow's Markdown summary. |
9393
| tags | `map[string, string]` | `no` | A key/value mapping of the workflow's tags, if any. |
94+
| metadata | `map` | `no` | Additional information about the workflow. |
9495

9596
#### Use
9697

@@ -253,6 +254,7 @@ The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** su
253254
| export | [`export`](#export) | `no` | An object used to customize the content of the workflow context. |
254255
| timeout | [`timeout`](#timeout) | `no` | The configuration of the task's timeout, if any. |
255256
| then | [`flowDirective`](#flow-directive) | `no` | The flow directive to execute next.<br>*If not set, defaults to `continue`.* |
257+
| metadata | `map` | `no` | Additional information about the task. |
256258

257259
#### Call
258260

schema/workflow.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ properties:
4343
title: WorkflowTags
4444
description: A key/value mapping of the workflow's tags, if any.
4545
additionalProperties: true
46+
metadata:
47+
type: object
48+
title: WorkflowMetadata
49+
description: Holds additional information about the workflow.
50+
additionalProperties: true
4651
required: [ dsl, namespace, name, version ]
4752
input:
4853
$ref: '#/$defs/input'
@@ -171,6 +176,11 @@ $defs:
171176
$ref: '#/$defs/flowDirective'
172177
title: TaskBaseThen
173178
description: The flow directive to be performed upon completion of the task.
179+
metadata:
180+
type: object
181+
title: TaskMetadata
182+
description: Holds additional information about the task.
183+
additionalProperties: true
174184
task:
175185
title: Task
176186
description: A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy