summaryrefslogtreecommitdiffstats
path: root/examples/examples-decisionmaker
diff options
context:
space:
mode:
Diffstat (limited to 'examples/examples-decisionmaker')
-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;