This is an automated email from the ASF dual-hosted git repository.

mcasters pushed a commit to branch release/2.6.0
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/release/2.6.0 by this push:
     new 980398ba7e Update loops-in-apache-hop.adoc
     new b3f1e3545b Merge pull request #3341 from Mattang-Dan/patch-29
980398ba7e is described below

commit 980398ba7e85a828ef515c1286362d75f9ba1621
Author: Mattang-Dan <[email protected]>
AuthorDate: Thu Nov 2 11:36:15 2023 -0700

    Update loops-in-apache-hop.adoc
---
 .../modules/ROOT/pages/how-to-guides/loops-in-apache-hop.adoc       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/docs/hop-user-manual/modules/ROOT/pages/how-to-guides/loops-in-apache-hop.adoc
 
b/docs/hop-user-manual/modules/ROOT/pages/how-to-guides/loops-in-apache-hop.adoc
index 50eb4a8b51..10b4e516f6 100644
--- 
a/docs/hop-user-manual/modules/ROOT/pages/how-to-guides/loops-in-apache-hop.adoc
+++ 
b/docs/hop-user-manual/modules/ROOT/pages/how-to-guides/loops-in-apache-hop.adoc
@@ -218,7 +218,11 @@ The repeat action in itself is pretty simple: it requires 
a workflow or pipeline
 
 The action will continue to execute the specified workflow or pipeline until a 
condition is met: either a variable is set with an (optional) value, or an `End 
repeat` action is triggered in a child workflow.
 
-The example below runs a pipeline that increments a 
`${openvar}COUNTER${closevar}` variable with each run. If the variable values 
exceeds 10, a variable `${openvar}END_LOOP${closevar}` is set. This variable is 
detected by the Repeat action, and the loop stops.
+If you use a variable name for the file to repeat, ensure a default parameter 
is set with a file extension so Hop knows if it is a pipeline or a workflow 
file.
+
+The samples project example below (/loops/repeat-action.hwf and 
child-check-set-counter-value.hpl) runs a pipeline that increments a ${COUNTER} 
variable with each run. If the variable values exceeds 10, a variable 
${END_LOOP} is set. This variable is detected by the Repeat action, and the 
loop stops. Because the Variable scope of COUNTER in the workflow is set to 
“Valid in the current workflow”, when you set COUNTER in the child the new 
value goes upstream.
+
+`../loops/repeat-action.hwf`
 
 image:how-to-guides/loops-in-apache-hop/loops-repeat-action.png[Repeat Action, 
width="65%"]
 

Reply via email to