summaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources/logic/ReceiveEventPolicyOnsetOrAbatedStateTSL.js
diff options
context:
space:
mode:
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);