Skip to content

Commit 0d0357c

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dsl-reference.md

Lines changed: 3 additions & 3 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,13 +1437,13 @@ 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

14491449

0 commit comments

Comments
 (0)