aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-decisionmaker/src/main
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-09-26 16:50:18 +0100
committerliamfallon <liam.fallon@ericsson.com>2018-09-26 16:50:53 +0100
commitcad13bc9dbd2eaebf91fcde1a0aa03dc179f4795 (patch)
treedee7bae6f9e6cde5d140de5d22d2e8edc3accbf2 /examples/examples-decisionmaker/src/main
parente69d7e19bf99a5ac575705f7a1a9375417b0990f (diff)
Fix boolean constants in examples
When the checkstyle changes were made in the java code the .TRUE and .FALSE values were changed to .isTrue and .isFalse to comply with checkstyle. THis change needs to be propogated into example scripts. Issue-ID: POLICY-103 Change-Id: I419b5f398ef4f43b1b877d52bbe4ec638870f31d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'examples/examples-decisionmaker/src/main')
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js2
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js2
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js4
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js2
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js2
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js2
-rw-r--r--examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js2
7 files changed, 8 insertions, 8 deletions
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js b/examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js
index 59074963a..4a09705d8 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/AnswerInitTask.js
@@ -44,4 +44,4 @@ executor.outFields.put("a6", answerAlbum.get("a6"));
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js b/examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js
index ec3455851..7d56956cc 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/DitheringAnswerTask.js
@@ -34,4 +34,4 @@ executor.outFields.put("decision", executor.getContextAlbum("AnswerAlbum").get(s
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js b/examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js
index 93261e2e0..85338f682 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/MakeDecisionStateTSL.js
@@ -21,7 +21,7 @@
executor.logger.info(executor.subject.id);
executor.logger.info(executor.inFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
if (executor.inFields.get("mode").equals("random")) {
executor.subject.getTaskKey("RandomAnswerTask").copyTo(executor.selectedTask);
@@ -39,4 +39,4 @@ else if (executor.inFields.get("mode").equals("dithering")) {
// executor.subject.getTaskKey("RoundRobinAnswerTask").copyTo(executor.selectedTask);
//}
-executor.logger.info("Answer Selected Task:" + executor.selectedTask); \ No newline at end of file
+executor.logger.info("Answer Selected Task:" + executor.selectedTask);
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js b/examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js
index e197c5f07..fdcca5260 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/OptimisticAnswerTask.js
@@ -34,4 +34,4 @@ executor.outFields.put("decision", executor.getContextAlbum("AnswerAlbum").get(s
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js b/examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js
index 34942d846..61935b3ed 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/PessimisticAnswerTask.js
@@ -34,4 +34,4 @@ executor.outFields.put("decision", executor.getContextAlbum("AnswerAlbum").get(s
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js b/examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js
index f4012ac6e..7a67fccc2 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/RandomAnswerTask.js
@@ -34,4 +34,4 @@ executor.outFields.put("decision", executor.getContextAlbum("AnswerAlbum").get(s
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;
diff --git a/examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js b/examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js
index a3d52f20f..ddfbe9254 100644
--- a/examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js
+++ b/examples/examples-decisionmaker/src/main/resources/logic/RoundRobinAnswerTask.js
@@ -42,4 +42,4 @@ executor.outFields.put("decision", executor.getContextAlbum("AnswerAlbum").get(s
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue;