execution.setVariable("subscriberInfo", subscriberInfo)\r
utils.log("DEBUG", "Incoming subscriberInfo is: " + subscriberInfo, isDebugEnabled)\r
\r
- /*
- * Extracting User Parameters from incoming Request and converting into a Map
- */
- def jsonSlurper = new JsonSlurper()
- def jsonOutput = new JsonOutput()
+ /*\r
+ * Extracting User Parameters from incoming Request and converting into a Map\r
+ */\r
+ def jsonSlurper = new JsonSlurper()\r
+ def jsonOutput = new JsonOutput()\r
+\r
+ Map reqMap = jsonSlurper.parseText(createVcpeServiceRequest)\r
+\r
+ //InputParams\r
+ def userParams = reqMap.requestDetails?.requestParameters?.userParams\r
- Map reqMap = jsonSlurper.parseText(createVcpeServiceRequest)
-
- //InputParams
- def userParams = reqMap.requestDetails?.requestParameters?.userParams
-
- Map<String, String> inputMap = [:]
- if (userParams) {
- userParams.each {
- name, value -> inputMap.put(name, value)
- if (name.equals("BRG_WAN_MAC_Address"))
- execution.setVariable("brgWanMacAddress", value)\r
- }
- }
-
- utils.log("DEBUG", "User Input Parameters map: " + userParams.toString(), isDebugEnabled)
- execution.setVariable("serviceInputParams", inputMap)
-
+ Map<String, String> inputMap = [:]\r
+\r
+\r
+ if (userParams) {\r
+ userParams.each {\r
+ userParam ->\r
+ if("BRG_WAN_MAC_Address".equals(userParam?.name)) {\r
+ execution.setVariable("brgWanMacAddress", userParam.value)\r
+ inputMap.put("BRG_WAN_MAC_Address", userParam.value)\r
+ }\r
+ }\r
+ }\r
+\r
+ utils.log("DEBUG", "User Input Parameters map: " + userParams.toString(), isDebugEnabled)\r
+ execution.setVariable("serviceInputParams", inputMap)\r
+\r
utils.log("DEBUG", "Incoming brgWanMacAddress is: " + execution.getVariable('brgWanMacAddress'), isDebugEnabled)\r
\r
//For Completion Handler & Fallout Handler\r
<id name="modelUUID" column="MODEL_UUID" type="string" length="200"/>
<property name="modelName" column="MODEL_NAME" type="string" length="200" not-null="true" />
- <property name="modelInvariantUUID" column="MODEL_INVARIANT_UUID" type="string" length="20"/>
+ <property name="modelInvariantUUID" column="MODEL_INVARIANT_UUID" type="string" length="200"/>
<property name="modelVersion" column="MODEL_VERSION" type="string" length="20"/>
<property name="toscaNodeType" column="TOSCA_NODE_TYPE" type="string" length="200"/>
<property name="neutronNetworkType" column="NEUTRON_NETWORK_TYPE" type="string" length="20"/>
</class>
-</hibernate-mapping>
\ No newline at end of file
+</hibernate-mapping>