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 c4a2a7e9fa Update eval.adoc
new 51a0c03f61 Merge pull request #3536 from Mattang-Dan/patch-73
c4a2a7e9fa is described below
commit c4a2a7e9fa96fb92d4781506cefb69d1e2a98c90
Author: Mattang-Dan <[email protected]>
AuthorDate: Sat Jan 6 08:07:21 2024 -0800
Update eval.adoc
Updated JavaScript docs for workflows
---
.../modules/ROOT/pages/workflow/actions/eval.adoc | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/eval.adoc
b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/eval.adoc
index 1dc0bf1636..8a0f74f63d 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/eval.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/eval.adoc
@@ -41,6 +41,18 @@ A workflow action can be placed several times on the canvas,
however it will be
|JavaScript|The JavaScript field.
|===
+== Examples
+```
+typeof parent_workflow.getVariable("DETAIL_ID_DATASOURCE_ID") != "undefined"
&& parent_workflow.getVariable("DETAIL_ID_DATASOURCE_ID").toString() == ""
+```
+
+```
+parent_workflow.getVariable("API_RETRY_COUNTER") !=
parent_workflow.getVariable("API_RETRY_LIMIT")
+```
+
+== Troubleshooting
+* Remove as many line returns as possible in the JavaScript.
+
== Evaluation
The result of a JavaScript action is either true or false.