Fix get variable name for crate model info 53/42853/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:36:40 +0000 (12:36 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:36:40 +0000 (12:36 +0000)
Fix get variable name for crate model info

Change-Id: I33a6ef37f865b5a528732f79d5ebc6a525470f90
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteE2EServiceInstance.groovy

index 003210f..e799ecf 100644 (file)
@@ -337,12 +337,13 @@ public class DoDeleteE2EServiceInstance extends AbstractServiceTaskProcessor {
 
         try {
             utils.log("DEBUG", " ***** Inside prepareDecomposeService of create generic e2e service ***** ", isDebugEnabled)
-            String modelInvariantUuid = execution.getVariable("model-invariant-id")
+            String modelInvariantUuid = execution.getVariable("model-invariant-id-original")
+            String modelVersionId = execution.getVariable("model-version-id-original")
             //here modelVersion is not set, we use modelUuid to decompose the service.
             String serviceModelInfo = """{
             "modelInvariantUuid":"${modelInvariantUuid}",
-            "modelUuid":"${modelUuid}",
-            "modelVersion":""
+            "modelUuid":"",
+            "modelVersion":"${modelVersionId}"
              }"""
             execution.setVariable("serviceModelInfo", serviceModelInfo)