Skip to content

Commit 7244d03

Browse files
authored
Merge branch 'main' into fix-1055-container-naming-recommandation
2 parents e17a44d + ef6fe8b commit 7244d03

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

dsl-reference.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,21 @@ Enables the execution of custom scripts or code within a workflow, empowering wo
830830

831831
| Name | Type | Required | Description |
832832
|:--|:---:|:---:|:---|
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/).* |
834834
| code | `string` | `no` | The script's code.<br>*Required if `source` has not been set.* |
835835
| source | [externalResource](#external-resource) | `no` | The script's resource.<br>*Required if `code` has not been set.* |
836836
| arguments | `map` | `no` | A list of the arguments, if any, of the script to run |
837837
| environment | `map` | `no` | A key/value mapping of the environment variables, if any, to use when running the configured script process |
838838

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).
841+
842+
**Supported languages**
843+
| Language | Version |
844+
|:-----------|:---------:|
845+
| `JavaScript` | [`ES2024`](https://tc39.es/ecma262/2024/) |
846+
| `Python` | [`3.13.x`](https://www.python.org/downloads/release/python-3131/) |
847+
839848
###### Examples
840849

841850
```yaml
@@ -1115,6 +1124,9 @@ Flow Directives are commands within a workflow that dictate its progression.
11151124
| `"end"` | Provides a graceful conclusion to the workflow execution, signaling its completion explicitly. |
11161125
| `string` | Continues the workflow at the task with the specified name |
11171126

1127+
> [!WARNING]
1128+
> Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
1129+
11181130
### External Resource
11191131

11201132
Defines an external resource.

dsl.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ Once the task has been executed, different things can happen:
183183
- `fault`: the task raised an uncaught error, which abruptly halts the workflow's execution and makes it transition to `faulted` [status phase](#status-phases).
184184
- `end`: the task explicitly and gracefully ends the workflow's execution.
185185

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+
186189
### Data Flow
187190

188191
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
348351
| workflow | [`workflowDescriptor`](#workflow-descriptor) | Describes the current workflow. |
349352
| runtime | [`runtimeDescriptor`](#runtime-descriptor) | Describes the runtime. |
350353

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.
352356
353357
##### Runtime Descriptor
354358

@@ -407,7 +411,8 @@ The following table shows which arguments are available for each runtime express
407411
| Task `export.as` | Transformed task output | `$context` |||||||||
408412
| Workflow `output.as` | Last task's transformed output | Transformed workflow output || | || ||| |
409413

410-
⚠️ **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.
411416
412417
### Fault Tolerance
413418

0 commit comments

Comments
 (0)