aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugins-executor/plugins-executor-javascript
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-03-11 17:17:14 +0000
committerliamfallon <liam.fallon@est.tech>2020-03-11 18:34:55 +0000
commitb87ab1696010ca0bbed5db99c140cf908722df57 (patch)
tree160ed6eafc600d126465e846f18b70bd199edbed /plugins/plugins-executor/plugins-executor-javascript
parent7c28f233037e768cde426f78d61cf959d2053fdb (diff)
Convert examples to Rhino Javascript format
All examples are converted to Rhino Javascript from Nashorn Javascript. Issue-ID: POLICY-2106 Change-Id: Ia6fec5b57b1e6131799b4b069968e4766ce54c96 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'plugins/plugins-executor/plugins-executor-javascript')
-rw-r--r--plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/PolicyTaskLogic.js2
-rw-r--r--plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/TestLogic00.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/PolicyTaskLogic.js b/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/PolicyTaskLogic.js
index d5427582a..d428bff10 100644
--- a/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/PolicyTaskLogic.js
+++ b/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/PolicyTaskLogic.js
@@ -32,4 +32,4 @@ executor.outFields.put("intPar", intParBy2);
executor.logger.info("outgoing value: " + executor.outFields.get("intPar").toString());
-executor.isTrue; \ No newline at end of file
+true; \ No newline at end of file
diff --git a/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/TestLogic00.js b/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/TestLogic00.js
index 0c15249d2..2f637338f 100644
--- a/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/TestLogic00.js
+++ b/plugins/plugins-executor/plugins-executor-javascript/src/test/resources/javascript/TestLogic00.js
@@ -18,6 +18,5 @@
* ============LICENSE_END=========================================================
*/
var x = 1;
-var returnValue = true;
-returnValue; \ No newline at end of file
+true; \ No newline at end of file