Skip to content

Commit 7a77a84

Browse files
committed
[Fix_#873] Charles comments
Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
1 parent 6f5d0a8 commit 7a77a84

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dsl-reference.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ to: '.petList += [ . ]'
14191419

14201420
### Export
14211421

1422-
Certain task needs to set the context of the workflow using the task output for later usage. User set the content of the context through a runtime expression. The result of the expression is the new value of the context. If user want to merge the new data into the current context, he might do that using `$context` variable.
1422+
Certain task needs to set the context of the workflow using the task output for later usage. User set the content of the context through a runtime expression. The result of the expression is the new value of the context. If user want to merge the new data into the current context, the context is accessible within the expression scope: `.` if using jq.
14231423

14241424
Optionally, the context can have a predefined schema.
14251425

@@ -1437,16 +1437,15 @@ Assuming the output of the task is a json object (not primitive, not array)
14371437
Merge into the current context the output of the task.
14381438

14391439
```yaml
1440-
as: '$context+=.'
1440+
as: '.+$output'
14411441
```
14421442

14431443
Replace the context with the output of the task.
14441444

14451445
```yaml
1446-
as: .
1446+
as: $output
14471447
```
14481448

1449-
14501449
### Schema
14511450

14521451
Describes a data schema.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy