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 5b228392b5 Update getvariable.adoc
new 60f9b6604c Merge pull request #3215 from Mattang-Dan/patch-12
5b228392b5 is described below
commit 5b228392b553b9b5b0500fa6d16924b27f4b5250
Author: Mattang-Dan <[email protected]>
AuthorDate: Mon Sep 11 09:29:26 2023 -0700
Update getvariable.adoc
---
.../modules/ROOT/pages/pipeline/transforms/getvariable.adoc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/getvariable.adoc
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/getvariable.adoc
index 4783ecfdc8..06452e13f4 100644
---
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/getvariable.adoc
+++
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/getvariable.adoc
@@ -27,18 +27,24 @@ under the License.
|
== Description
-The Get Variables transform allows you to get the value of a variable and
create field(s) from it or allows you to add values to existing input rows. You
could consider it to be a "Set fields” transform. It can retrieve the value of
a previous variable and/or retrieves previous rows or you can set static values
to a variable or input rows. You only need to use this transform if you need
the variable value in a field.
+The Get Variables transform allows you to get the value of a variable and
create field(s) from it or allows you to add values to existing input rows. You
could consider it to be a "Set fields” transform. It can retrieve the value of
a previous variable and/or retrieves previous rows or you can set static values
to a variable or input rows. You only need to use this transform if you need
the variable value in a field.
+
Note that workflow/environment variables are set only once. A pipeline needs
to start to get any new variables. A running or sequential or nested (nested
pipelines are technically the same pipeline) pipeline can't fetch new variable
values. A pipeline is considered started when a pipeline starts for every row
in a pipeline executor.
+
You can always refer to variables/parameters using the syntax: ${myVariable},
for example from a previous pipeline.
+
For example, you can specify:
${openvar}java.io.tmpdir{closevar}/hop/tempfile.txt and it will be expanded to
/tmp/hop/tempfile.txt on Unix-like systems.
+
You must always specify the data type or you will have errors like the
following:
+'''
2023/07/21 09:30:23 - REST client.0 - ERROR: Because of an error, this
transform can't continue:
2023/07/21 09:30:23 - REST client.0 - TOKEN_URL None : Unknown type 0
specified.
2023/07/21 09:30:23 - REST client.0 - ERROR:
org.apache.hop.core.exception.HopValueException:
+'''
See also the Set Variables transform.
To convert the Variable into a data type other than String use Select Values -
Meta Data tab.