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
| fork.branches | [`map[string, task][]`](#task) | `no` | The tasks to perform concurrently. |
612
-
| fork.compete | `boolean` | `no` | Indicates whether or not the concurrent [`tasks`](#task) are racing against each other, with a single possible winner, which sets the composite task's output.Defaults to `false`. |
612
+
| fork.compete | `boolean` | `no` | Indicates whether or not the concurrent [`tasks`](#task) are racing against each other, with a single possible winner, which sets the composite task's output.<br>*If set to `false`, the task returns an array that includes the outputs from each branch, preserving the order in which the branches are declared.*<br>*If to `true`, the task returns only the output of the winning branch.*<br>*Defaults to `false`.* |
613
613
614
614
##### Examples
615
615
@@ -818,6 +818,11 @@ do:
818
818
image: fake-image
819
819
```
820
820
821
+
> [!NOTE]
822
+
> When a `container process` is executed, runtime implementations are recommended to follow a predictable naming convention for the container name. This can improve monitoring, logging, and container lifecycle management.
823
+
>
824
+
> The Serverless Workflow specification recommends using the following convention: `{workflow.name}-{uuid}.{workflow.namespace}-{task.name}`
825
+
821
826
##### Script Process
822
827
823
828
Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.
@@ -826,12 +831,21 @@ Enables the execution of custom scripts or code within a workflow, empowering wo
826
831
827
832
| Name | Type | Required | Description |
828
833
|:--|:---:|:---:|:---|
829
-
| language | `string` | `yes` | The language of the script to run |
834
+
| 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/).* |
830
835
| code | `string` | `no` | The script's code.<br>*Required if `source` has not been set.* |
831
836
| source | [externalResource](#external-resource) | `no` | The script's resource.<br>*Required if `code` has not been set.* |
832
837
| arguments | `map` | `no` | A list of the arguments, if any, of the script to run |
833
838
| environment | `map` | `no` | A key/value mapping of the environment variables, if any, to use when running the configured script process |
834
839
840
+
> [!WARNING]
841
+
> 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