From 938108832179d5ca9b28e5cb981ce5602ca59344 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 10 Mar 2020 21:09:28 +0000 Subject: Adapt vCPE example for Rhino Javascript Minor changes to Javascript source for execution under the Rhino script engine. Issue-ID: POLICY-2106 Change-Id: Ib7e30ce0067a11ea1bb3ca8d197c796dba9ea091 Signed-off-by: liamfallon --- .../src/main/resources/logic/definitive/ControlLoopLogTask.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js') diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js index a5a692cbc..3e2771a74 100644 --- a/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js +++ b/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js @@ -63,6 +63,7 @@ clNotification.getAai().put("generic-vnf.orchestration-status", aaiInfo.get(" clNotification.getAai().put("generic-vnf.vnf-type", aaiInfo.get("genericVnfVnfType")); clNotification.getAai().put("generic-vnf.in-maint", aaiInfo.get("genericVnfInMaint")); clNotification.getAai().put("generic-vnf.service-id", aaiInfo.get("genericVnfServiceId")); + if(vnfID != null) { clNotification.getAai().put("generic-vnf.vnf-id", aaiInfo.get("genericVnfVnfId")); } @@ -70,4 +71,4 @@ executor.outFields.put("VirtualControlLoopNotification", clNotification); executor.logger.info(executor.outFields); -var returnValue = executor.isTrue; +true; -- cgit 1.2.3-korg