Fix get variable name from execution 51/42851/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:35:15 +0000 (12:35 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:35:15 +0000 (12:35 +0000)
Fix get variable name from execution

Change-Id: I640fc39fec8e013a2dd72bdea70a0e49cd407862
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/DoDeleteResourcesV1.groovy

index 6c150df..38dca88 100644 (file)
@@ -41,6 +41,23 @@ import org.openecomp.mso.bpmn.infrastructure.properties.BPMNProperties
 import static org.apache.commons.lang3.StringUtils.isBlank
 import static org.apache.commons.lang3.StringUtils.isBlank
 
+
+/**
+ * input for script :
+ * msoRequestId
+ * isDebugLogEnabled
+ * globalSubscriberId
+ * serviceType
+ * serviceInstanceId
+ * URN_mso_workflow_sdncadapter_callback
+ * serviceInputParams
+ * deleteResourceList
+ * resourceInstanceIDs
+ *
+ * output from script:
+ *
+ */
+
 public class DoDeleteResourcesV1 extends AbstractServiceTaskProcessor {
 
     String Prefix="DDR_"
@@ -132,7 +149,7 @@ public class DoDeleteResourcesV1 extends AbstractServiceTaskProcessor {
         List<String> resourceSequence = new  ArrayList<String>()
 
         // get delete resource list and order list
-        List<Resource> delResourceList = execution.getVariable("delResourceList")
+        List<Resource> delResourceList = execution.getVariable("deleteResourceList")
         // existing resource list
         List<ServiceInstance> existResourceList = execution.getVariable("realNSRessources")