summaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources
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-onap-vcpe/src/main/resources
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-onap-vcpe/src/main/resources')
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/AAILookupRequestTask.js4
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/AAILookupResponseTask.js6
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFRequestTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFResponseTask.js4
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/AbatedTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/ControlLoopLogTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/DeniedTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/GetVCPEStateTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/GuardRequestTask.js4
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/GuardResponseTask.js6
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/NoAAILookupTask.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyAAILookupStateTSL.js2
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js8
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/RestartAPPCRequestPolicyPermitOrDenyTSL.js2
14 files changed, 24 insertions, 24 deletions
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupRequestTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupRequestTask.js
index f3c0c45cd..bf66dbb22 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupRequestTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupRequestTask.js
@@ -36,9 +36,9 @@ executor.logger.info(guardDecisionAttributes);
executor.outFields.put("decisionAttributes", guardDecisionAttributes);
executor.outFields.put("onapName", "APEX");
-executor.getContextAlbum("ControlLoopExecutionIDAlbum").put(executor.executionID.toString(),
+executor.getContextAlbum("ControlLoopExecutionIDAlbum").put(executor.executionId.toString(),
executor.inFields.get("vnfID"));
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue; \ No newline at end of file
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupResponseTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupResponseTask.js
index df98c25f4..69cd03771 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupResponseTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/AAILookupResponseTask.js
@@ -21,7 +21,7 @@
executor.logger.info(executor.subject.id);
executor.logger.info(executor.inFields);
-var vnfID = executor.getContextAlbum("ControlLoopExecutionIDAlbum").remove(executor.executionID.toString());
+var vnfID = executor.getContextAlbum("ControlLoopExecutionIDAlbum").remove(executor.executionId.toString());
executor.logger.info("Continuing execution with VNF ID: " + vnfID);
@@ -36,7 +36,7 @@ if (guardResult === "PERMIT") {
vcpeClosedLoopStatus.put("notification", "OPERATION: GUARD_DENY");
} else {
executor.message = "guard result must be either \"PERMIT\" or \"DENY\"";
- returnValue = executor.FALSE;
+ returnValue = executor.isFalse;
}
var uuidType = Java.type("java.util.UUID");
@@ -47,4 +47,4 @@ executor.outFields.put("vnfID", vnfID);
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFRequestTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFRequestTask.js
index 45a70c014..184340288 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFRequestTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFRequestTask.js
@@ -73,4 +73,4 @@ vcpeClosedLoopStatus.put("notification", "OPERATION: RESTART REQUESTED");
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFResponseTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFResponseTask.js
index d382e6274..5e20f1569 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFResponseTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/APPCRestartVNFResponseTask.js
@@ -27,7 +27,7 @@ var integerType = Java.type("java.lang.Integer");
var requestID = uuidType.fromString(executor.inFields.get("correlation-id"));
var vnfID = executor.getContextAlbum("RequestIDVNFIDAlbum").remove(requestID.toString());
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
if (vnfID != null) {
var vcpeClosedLoopStatus = executor.getContextAlbum("VCPEClosedLoopStatusAlbum").get(vnfID.toString());
@@ -44,7 +44,7 @@ if (vnfID != null) {
executor.outFields.put("vnfID", vnfID);
} else {
executor.message = "VNF ID not found in context album for request ID " + requestID;
- returnValue = executor.FALSE
+ returnValue = executor.isFalse
}
executor.logger.info(executor.outFields);
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/AbatedTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/AbatedTask.js
index 1fb46b7ba..a8b1fe8e4 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/AbatedTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/AbatedTask.js
@@ -29,4 +29,4 @@ vcpeClosedLoopStatus.put("notificationTime", new Date().toISOString());
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/ControlLoopLogTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/ControlLoopLogTask.js
index 65922e7f1..bceb628e2 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/ControlLoopLogTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/ControlLoopLogTask.js
@@ -45,4 +45,4 @@ executor.outFields.put("notificationTime", vcpeClosedLoopStatus.get("notificatio
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/DeniedTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/DeniedTask.js
index 7f3a9d6b6..4ee73750d 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/DeniedTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/DeniedTask.js
@@ -29,4 +29,4 @@ vcpeClosedLoopStatus.put("notificationTime", new Date().toISOString());
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/GetVCPEStateTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/GetVCPEStateTask.js
index 435d6d735..18bd418bf 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/GetVCPEStateTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/GetVCPEStateTask.js
@@ -66,4 +66,4 @@ executor.outFields.put("vnfID", vnfID);
executor.logger.info(executor.outFields);
-returnValue = executor.TRUE;
+returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/GuardRequestTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/GuardRequestTask.js
index f3c0c45cd..bf66dbb22 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/GuardRequestTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/GuardRequestTask.js
@@ -36,9 +36,9 @@ executor.logger.info(guardDecisionAttributes);
executor.outFields.put("decisionAttributes", guardDecisionAttributes);
executor.outFields.put("onapName", "APEX");
-executor.getContextAlbum("ControlLoopExecutionIDAlbum").put(executor.executionID.toString(),
+executor.getContextAlbum("ControlLoopExecutionIDAlbum").put(executor.executionId.toString(),
executor.inFields.get("vnfID"));
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE; \ No newline at end of file
+var returnValue = executor.isTrue; \ No newline at end of file
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/GuardResponseTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/GuardResponseTask.js
index df98c25f4..69cd03771 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/GuardResponseTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/GuardResponseTask.js
@@ -21,7 +21,7 @@
executor.logger.info(executor.subject.id);
executor.logger.info(executor.inFields);
-var vnfID = executor.getContextAlbum("ControlLoopExecutionIDAlbum").remove(executor.executionID.toString());
+var vnfID = executor.getContextAlbum("ControlLoopExecutionIDAlbum").remove(executor.executionId.toString());
executor.logger.info("Continuing execution with VNF ID: " + vnfID);
@@ -36,7 +36,7 @@ if (guardResult === "PERMIT") {
vcpeClosedLoopStatus.put("notification", "OPERATION: GUARD_DENY");
} else {
executor.message = "guard result must be either \"PERMIT\" or \"DENY\"";
- returnValue = executor.FALSE;
+ returnValue = executor.isFalse;
}
var uuidType = Java.type("java.util.UUID");
@@ -47,4 +47,4 @@ executor.outFields.put("vnfID", vnfID);
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/NoAAILookupTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/NoAAILookupTask.js
index 0c088078f..ebc0e6387 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/NoAAILookupTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/NoAAILookupTask.js
@@ -23,4 +23,4 @@ executor.logger.info(executor.inFields);
executor.logger.info(executor.outFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyAAILookupStateTSL.js b/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyAAILookupStateTSL.js
index 7bbfcd9ca..ce627950c 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyAAILookupStateTSL.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyAAILookupStateTSL.js
@@ -21,7 +21,7 @@
executor.logger.info(executor.subject.id);
executor.logger.info(executor.inFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
var vcpeClosedLoopStatus = executor.getContextAlbum("VCPEClosedLoopStatusAlbum").get(
executor.inFields.get("vnfID").toString());
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js b/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
index 3fea4a025..b97fe5a0c 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
@@ -21,23 +21,23 @@
executor.logger.info(executor.subject.id);
executor.logger.info(executor.inFields);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
var vcpeClosedLoopStatus = executor.getContextAlbum("VCPEClosedLoopStatusAlbum").get(
executor.inFields.get("vnfID").toString());
var status = vcpeClosedLoopStatus.get("closedLoopEventStatus");
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;
if (status === "ONSET") {
executor.subject.getTaskKey("GuardRequestTask").copyTo(executor.selectedTask);
} else if (status === "ABATED") {
executor.subject.getTaskKey("AbatedTask").copyTo(executor.selectedTask);
- onsetFlag = executor.FALSE;
+ onsetFlag = executor.isFalse;
} else {
executor.message = "closedLoopEventStatus must be either \"ONSET\" or \"ABATED\"";
- returnValue = executor.FALSE;
+ returnValue = executor.isFalse;
}
executor.logger.info("ReceiveEventPolicyOnsetOrAbatedStateTSL State Selected Task:" + executor.selectedTask);
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/RestartAPPCRequestPolicyPermitOrDenyTSL.js b/examples/examples-onap-vcpe/src/main/resources/logic/RestartAPPCRequestPolicyPermitOrDenyTSL.js
index b1b6420cb..a1bac6546 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/RestartAPPCRequestPolicyPermitOrDenyTSL.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/RestartAPPCRequestPolicyPermitOrDenyTSL.js
@@ -34,4 +34,4 @@ if (guardResult === "OPERATION: GUARD_PERMIT") {
executor.logger.info("RestartAPPCRequestPolicyPermitOrDenyTSL State Selected Task:" + executor.selectedTask);
-var returnValue = executor.TRUE;
+var returnValue = executor.isTrue;