This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git
commit 626000c072cd24ce7f8b2e3eca024b9ef33aae23 Author: Alex Heneveld <[email protected]> AuthorDate: Tue May 23 12:21:06 2023 +0100 spread syntax for foreach --- guide/blueprints/workflow/steps/steps.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guide/blueprints/workflow/steps/steps.yaml b/guide/blueprints/workflow/steps/steps.yaml index b246e549..5c343695 100644 --- a/guide/blueprints/workflow/steps/steps.yaml +++ b/guide/blueprints/workflow/steps/steps.yaml @@ -221,7 +221,9 @@ shorthand: '`foreach TARGET_VAR_NAME [ in TARGET ]`' input: | * `steps`: a list of steps to run, run in a separate context - * `target_var_name`: the name of the variable that should be set in nested workflows to refer to the element in the target list + * `target_var_name`: the name of the variable that should be set in nested workflows to refer to the element in the target list, + with the additional behavior that if this is of the "spread map syntax" form `{KEY,KEY2}`, each element in the target list will be assumed to be a map + and the keys "KEY" and "KEY2" will be extracted and each one set as a variable in the nested workflow * `target`: the list that should be looped over * other input as per `workflow` output: as per `workflow`, if `reducing` is specified, the final value of those variables,
