modify update e2e Instance groovy 05/35205/1
authorYulian Han <elaine.hanyulian@huawei.com>
Mon, 12 Mar 2018 11:59:53 +0000 (19:59 +0800)
committerYulian Han <elaine.hanyulian@huawei.com>
Mon, 12 Mar 2018 11:59:53 +0000 (19:59 +0800)
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f0641c6
Issue-ID: SO-419
Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateCustomE2EServiceInstance.groovy

index c91f353..44eaa34 100644 (file)
@@ -118,6 +118,15 @@ public class UpdateCustomE2EServiceInstance extends AbstractServiceTaskProcessor
                        } else {
                                execution.setVariable("serviceType", serviceType)
                        }
+                       
+                       //operationId
+                       String operationId = jsonUtil.getJsonValue(siRequest, "operationId")
+                       if (isBlank(operationId)) {
+                               operationId = UUID.randomUUID().toString()
+                        }   
+                       execution.setVariable("operationId", operationId) 
+                       execution.setVariable("operationType", "UPDATE")
+                       
                        execution.setVariable("URN_mso_adapters_openecomp_db_endpoint","http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter")
 
                } catch (BpmnError e) {