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
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -830,12 +830,21 @@ Enables the execution of custom scripts or code within a workflow, empowering wo
830
830
831
831
| Name | Type | Required | Description |
832
832
|:--|:---:|:---:|:---|
833
-
| language | `string` | `yes` | The language of the script to run |
833
+
| language | `string` | `yes` | The language of the script to run.<br>*Supported values are: [`js`](https://tc39.es/ecma262/2024/) and [`python`](https://www.python.org/downloads/release/python-3131/).* |
834
834
| code | `string` | `no` | The script's code.<br>*Required if `source` has not been set.* |
835
835
| source | [externalResource](#external-resource) | `no` | The script's resource.<br>*Required if `code` has not been set.* |
836
836
| arguments | `map` | `no` | A list of the arguments, if any, of the script to run |
837
837
| environment | `map` | `no` | A key/value mapping of the environment variables, if any, to use when running the configured script process |
838
838
839
+
> [!WARNING]
840
+
> To ensure cross-compatibility, Serverless Workflow strictly limits the versions of supported scripting languages. These versions may evolve with future releases. If you wish to use a different version of a language, you may do so by utilizing the [`container process`](#container-process).
Copy file name to clipboardExpand all lines: dsl.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,9 @@ Once the task has been executed, different things can happen:
183
183
-`fault`: the task raised an uncaught error, which abruptly halts the workflow's execution and makes it transition to `faulted`[status phase](#status-phases).
184
184
-`end`: the task explicitly and gracefully ends the workflow's execution.
185
185
186
+
> [!WARNING]
187
+
> Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
188
+
186
189
### Data Flow
187
190
188
191
In Serverless Workflow DSL, data flow management is crucial to ensure that the right data is passed between tasks and to the workflow itself.
@@ -348,7 +351,8 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
348
351
| workflow |[`workflowDescriptor`](#workflow-descriptor)| Describes the current workflow. |
349
352
| runtime |[`runtimeDescriptor`](#runtime-descriptor)| Describes the runtime. |
350
353
351
-
⚠️ **Warning**: Use `$secrets` with caution: incorporating them in expressions or passing them as call inputs may inadvertently expose sensitive information.
354
+
> [!WARNING]
355
+
> Use `$secrets` with caution: incorporating them in expressions or passing them as call inputs may inadvertently expose sensitive information.
352
356
353
357
##### Runtime Descriptor
354
358
@@ -407,7 +411,8 @@ The following table shows which arguments are available for each runtime express
⚠️ **Warning**: Use `$secrets` with caution: incorporating them in expressions or passing them as call inputs may inadvertently expose sensitive information.
414
+
> [!WARNING]
415
+
> Use `$secrets` with caution: incorporating them in expressions or passing them as call inputs may inadvertently expose sensitive information.
0 commit comments