This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new e784295ad1 Update repeat.adoc
new ac17666db5 Merge pull request #3228 from Mattang-Dan/patch-18
e784295ad1 is described below
commit e784295ad1c8e3b24b066dd954487f00443b34f0
Author: Mattang-Dan <[email protected]>
AuthorDate: Thu Sep 14 05:31:29 2023 -0700
Update repeat.adoc
---
.../modules/ROOT/pages/workflow/actions/repeat.adoc | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/repeat.adoc
b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/repeat.adoc
index 7fb49252da..331e7afbae 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/repeat.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/repeat.adoc
@@ -23,12 +23,21 @@ under the License.
== Description
The Repeat action repeats the pipeline or workflow of your choice until a
certain condition is met.
-
The condition is either:
* A variable in the workflow is set or set to a certain value
* The End Repeat action is executed in the specified repeating workflow
+In addition to the workflow and pipeline executor transforms, the Repeat and
End Repeat actions let you build loops from a workflow. It requires a workflow
or pipeline and a run configuration to use. The action will continue to execute
the specified workflow or pipeline until a condition is met: either a variable
is set or a variable set to an specific optional value, or an End repeat action
is triggered in a child workflow.
+
+TIP: 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.
+
+== Example
+The samples project example: ``/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.
+
+
+
+
== Options
[options="header"]