[MSO-8] Update the maven dependency
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / UpdateVfModuleInfra.groovy
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package com.att.bpm.scripts
+package org.openecomp.mso.bpmn.infrastructure.scripts
 
 import groovy.json.JsonSlurper
 import groovy.util.Node
@@ -29,10 +29,11 @@ import java.io.Serializable;
 
 import org.camunda.bpm.engine.delegate.BpmnError
 import org.camunda.bpm.engine.runtime.Execution
-
 import org.openecomp.mso.rest.APIResponse
 import org.openecomp.mso.rest.RESTClient
 import org.openecomp.mso.rest.RESTConfig
+import org.openecomp.mso.bpmn.common.scripts.AbstractServiceTaskProcessor;
+import org.openecomp.mso.bpmn.common.scripts.VidUtils;
 import org.openecomp.mso.bpmn.core.RollbackData
 import org.openecomp.mso.bpmn.core.WorkflowException
 
@@ -232,7 +233,7 @@ public class UpdateVfModuleInfra extends AbstractServiceTaskProcessor {
                        
                        String updateInfraRequest = """
                                <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
-                                               xmlns:req="http://com.att.mso/requestsdb">
+                                               xmlns:req="http://org.openecomp.mso/requestsdb">
                                        <soapenv:Header/>
                                        <soapenv:Body>
                                                <req:updateInfraRequest>
@@ -282,8 +283,8 @@ public class UpdateVfModuleInfra extends AbstractServiceTaskProcessor {
                        def requestInfo = getVariable(execution, 'UPDVfModI_requestInfo')
                        
                        String content = """
-                               <sdncadapterworkflow:MsoCompletionRequest xmlns:sdncadapterworkflow="http://ecomp.att.com/mso/workflow/schema/v1"
-                                               xmlns:reqtype="http://ecomp.att.com/mso/request/types/v1">
+                               <sdncadapterworkflow:MsoCompletionRequest xmlns:sdncadapterworkflow="http://org.openecomp/mso/workflow/schema/v1"
+                                               xmlns:reqtype="http://org.openecomp/mso/request/types/v1">
                                        ${requestInfo}
                                        <sdncadapterworkflow:mso-bpel-name>MSO_ACTIVATE_BPEL</sdncadapterworkflow:mso-bpel-name>
                                </sdncadapterworkflow:MsoCompletionRequest>
@@ -330,10 +331,10 @@ public class UpdateVfModuleInfra extends AbstractServiceTaskProcessor {
                        }
 
                        String content = """
-                               <sdncadapterworkflow:FalloutHandlerRequest xmlns:sdncadapterworkflow="http://ecomp.att.com/mso/workflow/schema/v1"
-                                               xmlns:reqtype="http://ecomp.att.com/mso/request/types/v1"
-                                               xmlns:msoservtypes="http://ecomp.att.com/mso/request/types/v1"
-                                               xmlns:structuredtypes="http://ecomp.att.com/mso/structured/types/v1">
+                               <sdncadapterworkflow:FalloutHandlerRequest xmlns:sdncadapterworkflow="http://org.openecomp/mso/workflow/schema/v1"
+                                               xmlns:reqtype="http://org.openecomp/mso/request/types/v1"
+                                               xmlns:msoservtypes="http://org.openecomp/mso/request/types/v1"
+                                               xmlns:structuredtypes="http://org.openecomp/mso/structured/types/v1">
                                        ${requestInformation}
                                        <sdncadapterworkflow:WorkflowException>
                                                <sdncadapterworkflow:ErrorMessage>${encErrorResponseMsg}</sdncadapterworkflow:ErrorMessage>
@@ -396,18 +397,18 @@ public class UpdateVfModuleInfra extends AbstractServiceTaskProcessor {
                        
                        /*
 
-                       def requestId = execution.getVariable("att-mso-request-id")
+                       def requestId = execution.getVariable("mso-request-id")
                        
                        if (requestId == null) {
-                               createWorkflowException(execution, 1002, processKey + " request has no att-mso-request-id")
+                               createWorkflowException(execution, 1002, processKey + " request has no mso-request-id")
                        }
                        
                        setVariable(execution, prefix + 'requestId', requestId)
 
-                       def serviceInstanceId = execution.getVariable("att-mso-service-instance-id")
+                       def serviceInstanceId = execution.getVariable("mso-service-instance-id")
 
                        if (serviceInstanceId == null) {
-                               createWorkflowException(execution, 1002, processKey + " request message has no att-mso-service-instance-id")
+                               createWorkflowException(execution, 1002, processKey + " request message has no mso-service-instance-id")
                        }
 
                        utils.logContext(requestId, serviceInstanceId)