From ff2e7dab1751199a928b3d3c20862b645494ac1a Mon Sep 17 00:00:00 2001 From: Charles d'Avernas Date: Wed, 28 Aug 2024 14:06:42 +0200 Subject: [PATCH] Adds a new `metadata` property to both the workflow document and tasks Signed-off-by: Charles d'Avernas --- dsl-reference.md | 2 ++ schema/workflow.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/dsl-reference.md b/dsl-reference.md index 68b3346b..5790c813 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -91,6 +91,7 @@ Documents the workflow definition. | title | `string` | `no` | The workflow's title. | | summary | `string` | `no` | The workflow's Markdown summary. | | tags | `map[string, string]` | `no` | A key/value mapping of the workflow's tags, if any. | +| metadata | `map` | `no` | Additional information about the workflow. | #### Use @@ -253,6 +254,7 @@ The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** su | export | [`export`](#export) | `no` | An object used to customize the content of the workflow context. | | timeout | [`timeout`](#timeout) | `no` | The configuration of the task's timeout, if any. | | then | [`flowDirective`](#flow-directive) | `no` | The flow directive to execute next.
*If not set, defaults to `continue`.* | +| metadata | `map` | `no` | Additional information about the task. | #### Call diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 1b47ec76..e8208a74 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -43,6 +43,11 @@ properties: title: WorkflowTags description: A key/value mapping of the workflow's tags, if any. additionalProperties: true + metadata: + type: object + title: WorkflowMetadata + description: Holds additional information about the workflow. + additionalProperties: true required: [ dsl, namespace, name, version ] input: $ref: '#/$defs/input' @@ -171,6 +176,11 @@ $defs: $ref: '#/$defs/flowDirective' title: TaskBaseThen description: The flow directive to be performed upon completion of the task. + metadata: + type: object + title: TaskMetadata + description: Holds additional information about the task. + additionalProperties: true task: title: Task description: A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.