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
Copy file name to clipboardExpand all lines: dsl-reference.md
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@
55
55
+[HTTP Response](#http-response)
56
56
+[HTTP Request](#http-request)
57
57
+[URI Template](#uri-template)
58
+
+[Process Result](#process-result)
58
59
59
60
## Abstract
60
61
@@ -411,7 +412,7 @@ The [OpenAPI Call](#openapi-call) enables workflows to interact with external se
411
412
|:--|:---:|:---:|:---|
412
413
| document | [`externalResource`](#external-resource) | `yes` | The OpenAPI document that defines the operation to call. |
413
414
| operationId | `string` | `yes` | The id of the OpenAPI operation to call. |
414
-
| arguments | `map` | `no` | A name/value mapping of the parameters, if any, of the OpenAPI operation to call. |
415
+
| parameters | `map` | `no` | A name/value mapping of the parameters, if any, of the OpenAPI operation to call. |
415
416
| authentication | [`authentication`](#authentication) | `no` | The authentication policy, or the name of the authentication policy, to use when calling the OpenAPI operation. |
416
417
| output | `string` | `no` | The OpenAPI call's output format.<br>*Supported values are:*<br>*- `raw`, which output's the base-64 encoded [http response](#http-response) content, if any.*<br>*- `content`, which outputs the content of [http response](#http-response), possibly deserialized.*<br>*- `response`, which outputs the [http response](#http-response).*<br>*Defaults to `content`.* |
417
418
@@ -723,6 +724,7 @@ Provides the capability to execute external [containers](#container-process), [s
723
724
| run.shell | [`shell`](#shell-process) | `no` | The definition of the shell command to run.<br>*Required if `container`, `script` and `workflow` have not been set.* |
724
725
| run.workflow | [`workflow`](#workflow-process) | `no` | The definition of the workflow to run.<br>*Required if `container`, `script` and `shell` have not been set.* |
725
726
| await | `boolean` | `no` | Determines whether or not the process to run should be awaited for.<br>*When set to `false`, the task cannot wait for the process to complete and thus cannot output the process’s result. In this case, it should simply output its transformed input.*<br>*Defaults to `true`.* |
727
+
| return | `string` | `no` | Configures the output of the process.<br>*Supported values are:*<br>*- `stdout`: Outputs the content of the process **STDOUT**.*<br>*- `stderr`: Outputs the content of the process **STDERR**.*<br>*- `code`: Outputs the process's **exit code**.*<br>*- `all`: Outputs the **exit code**, the **STDOUT** content and the **STDERR** content, wrapped into a new [processResult](#process-result) object.*<br>*- `none`: Does not output anything.*<br>*Defaults to `stdout`.* |
726
728
727
729
##### Examples
728
730
@@ -1888,3 +1890,54 @@ This has the following limitations compared to runtime expressions:
Copy file name to clipboardExpand all lines: dsl.md
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -343,18 +343,20 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
343
343
| input |`any`| The task's transformed input. |
344
344
| output |`any`| The task's transformed output. |
345
345
| secrets |`map`| A key/value map of the workflow secrets.<br>To avoid unintentional bleeding, secrets can only be used in the `input.from` runtime expression. |
346
+
| authorization |[`authorizationDescriptor`](#authorization-descriptor)| Describes the resolved authorization, as defined by the task's authentication, if any. |
346
347
| task |[`taskDescriptor`](#task-descriptor)| Describes the current task. |
347
348
| workflow |[`workflowDescriptor`](#workflow-descriptor)| Describes the current workflow. |
348
349
| runtime |[`runtimeDescriptor`](#runtime-descriptor)| Describes the runtime. |
349
350
351
+
350
352
##### Runtime Descriptor
351
353
352
354
This argument contains information about the runtime executing the workflow.
353
355
354
356
| Name | Type | Description | Example |
355
-
|:-----|:----:|:------------|-------|
357
+
|:-----|:----:|:------------|:--------|
356
358
| name |`string`| A human friendly name for the runtime. |`Synapse`, `Sonata`|
357
-
| version |`string`| The version of the runtime. This can be an arbitrary string |a incrementing positive integer (`362`), semantic version (`1.4.78`), commit hash (`04cd3be6da98fc35422c8caa821e0aa1ef6b2c02`) or container image label (`v0.7.43-alpine`) |
359
+
| version |`string`| The version of the runtime. This can be an arbitrary string |An incrementing positive integer (`362`), semantic version (`1.4.78`), commit hash (`04cd3be6da98fc35422c8caa821e0aa1ef6b2c02`) or container image label (`v0.7.43-alpine`) |
358
360
| metadata |`map`| An object/map of implementation specific key-value pairs. This can be chosen by runtime implementors and usage of this argument signals that a given workflow definition might not be runtime agnostic | A Software as a Service (SaaS) provider might choose to expose information about the tenant the workflow is executed for e.g. `{ "organization": { "id": "org-ff51cff2-fc83-4d70-9af1-8dacdbbce0be", "name": "example-corp" }, "featureFlags": ["fastZip", "arm64"] }`. |
359
361
360
362
##### Workflow Descriptor
@@ -377,6 +379,13 @@ This argument contains information about the runtime executing the workflow.
377
379
| output |`any`| The task's *raw* output (i.e. *BEFORE* the `output.as` expression). ||
378
380
| startedAt |[`dateTimeDescriptor`](#datetime-descriptor)| The start time of the task ||
379
381
382
+
##### Authorization Descriptor
383
+
384
+
| Name | Type | Description | Example |
385
+
|:-------|:------:|:------------|:--------|
386
+
| scheme |`string`| The resolved authorization scheme. |`Bearer`|
387
+
| parameter |`string`| The resolved authorization parameter. |`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJVadQssw5c`|
388
+
380
389
##### DateTime Descriptor
381
390
382
391
| Name | Type | Description | Example |
@@ -387,15 +396,15 @@ This argument contains information about the runtime executing the workflow.
387
396
388
397
The following table shows which arguments are available for each runtime expression:
389
398
390
-
| Runtime Expression | Evaluated on | Produces |`$context`|`$input`|`$output`|`$secrets`|`$task`|`$workflow`|
0 commit comments