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


The following commit(s) were added to refs/heads/master by this push:
     new e96ad5fa minor fixes to workflow docs
e96ad5fa is described below

commit e96ad5fa0359198c8f35e6034385132d792e6efc
Author: Alex Heneveld <[email protected]>
AuthorDate: Wed Nov 30 16:01:43 2022 +0000

    minor fixes to workflow docs
---
 guide/blueprints/workflow/settings.md      | 7 ++-----
 guide/blueprints/workflow/steps/steps.yaml | 2 +-
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/guide/blueprints/workflow/settings.md 
b/guide/blueprints/workflow/settings.md
index 6e0b5d92..2788a6a8 100644
--- a/guide/blueprints/workflow/settings.md
+++ b/guide/blueprints/workflow/settings.md
@@ -62,16 +62,13 @@ on a server at the same time:
 ```
 id: apt-get
 type: workflow
-lock: apt
+lock: apt-package-management
 shorthand: ${package}
 parameters:
   package:
     description: package(s) to install
 steps:
-- type: workflow
-  lock: apt-package-management
-  steps:
-    - ssh sudo apt-get install -y ${package}
+- ssh sudo apt-get install -y ${package}
 ```
 
 A workflow can then do `apt-get iputils-ping` as a step and Brooklyn will
diff --git a/guide/blueprints/workflow/steps/steps.yaml 
b/guide/blueprints/workflow/steps/steps.yaml
index 1d29a955..6024610b 100644
--- a/guide/blueprints/workflow/steps/steps.yaml
+++ b/guide/blueprints/workflow/steps/steps.yaml
@@ -64,7 +64,7 @@
           for anything other than `encode`, stripping any text before a `---` 
YAML document separator,
         * `bash [json|yaml] [string|encode]`: equivalent to the corresponding 
`json` or `yaml` transform, with `json` being the default, followed by 
bash-escaping and wrapping in double quotes;
           ideally suited for passing to scripts; `string` is the default and 
suitable for most purposes, but `encode` is needed where passing to something 
that expects JSON such as `jq`
-        * `first`, `last`, `min`, `max`, and `average` are accepted for 
collections
+        * `first`, `last`, `min`, `max`, `sum`, `average` and `size` are 
accepted for collections
         * any other word is looked up as a registered type of type 
`org.apache.brooklyn.core.workflow.steps.transform.WorkflowTransform` (or 
`WorkflowTransformWithContext` to get the context or arguments)
       output: the output from the previous step, or null if this is the first 
step
 

Reply via email to