summaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
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/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
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/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js')
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js8
1 files changed, 4 insertions, 4 deletions
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);