diff --git a/dsl-reference.md b/dsl-reference.md index 71dfe1af..5bf9556d 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -133,7 +133,7 @@ Defines the workflow's reusable components. | authentications | [`map[string, authentication]`](#authentication) | `no` | A name/value mapping of the workflow's reusable authentication policies. | | catalogs | [`map[string, catalog]`](#catalog) | `no` | A name/value mapping of the workflow's reusable resource catalogs. | | errors | [`map[string, error]`](#error) | `no` | A name/value mapping of the workflow's reusable errors. | -| extensions | [`map[string, extension]`](#extension) | `no` | A list of the workflow's reusable extensions. | +| extensions | [`extension[]`](#extension) | `no` | A list of the workflow's reusable extensions. | | functions | [`map[string, task]`](#task) | `no` | A name/value mapping of the workflow's reusable tasks. | | retries | [`map[string, retryPolicy]`](#retry) | `no` | A name/value mapping of the workflow's reusable retry policies. | | secrets | `string[]` | `no` | A list containing the workflow's secrets. | @@ -2006,8 +2006,8 @@ Extensions enable the execution of tasks prior to those they extend, offering th |----------|:----:|:--------:|-------------| | extend | `string` | `yes` | The type of task to extend
Supported values are: `call`, `composite`, `emit`, `extension`, `for`, `listen`, `raise`, `run`, `set`, `switch`, `try`, `wait` and `all` | | when | `string` | `no` | A runtime expression used to determine whether or not the extension should apply in the specified context | -| before | [`map[string, task]`](#task) | `no` | The task to execute, if any, before the extended task | -| after | [`map[string, task]`](#task) | `no` | The task to execute, if any, after the extended task | +| before | [`task[]`](#task) | `no` | The list of tasks to execute, if any, before the extended task | +| after | [`task[]`](#task) | `no` | The list of tasks to execute, if any, after the extended task | #### Examples diff --git a/dsl.md b/dsl.md index a133f5ab..7cf1e7a1 100644 --- a/dsl.md +++ b/dsl.md @@ -742,24 +742,24 @@ document: version: '0.1.0' use: extensions: - logging: - extend: all - before: - - sendLog: - call: http - with: - method: post - uri: https://fake.log.collector.com - body: - message: "${ \"Executing task '\($task.reference)'...\" }" - after: - - sendLog: - call: http - with: - method: post - uri: https://fake.log.collector.com - body: - message: "${ \"Executed task '\($task.reference)'...\" }" + - logging: + extend: all + before: + - sendLog: + call: http + with: + method: post + endpoint: https://fake.log.collector.com + body: + message: "${ \"Executing task '\($task.reference)'...\" }" + after: + - sendLog: + call: http + with: + method: post + endpoint: https://fake.log.collector.com + body: + message: "${ \"Executed task '\($task.reference)'...\" }" do: - sampleTask: call: http