Merge "Adding Junit"
[so.git] / bpmn / MSOCommonBPMN / src / main / groovy / org / openecomp / mso / bpmn / common / scripts / CustomE2EGetService.groovy
index aece07e..86b3585 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP - SO\r
  * ================================================================================\r
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved. \r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -24,7 +25,7 @@ import static org.apache.commons.lang3.StringUtils.*
 \r
 import org.apache.commons.lang3.*\r
 import org.camunda.bpm.engine.delegate.BpmnError\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
 import org.openecomp.mso.rest.APIResponse\r
 import org.springframework.web.util.UriUtils\r
 \r
@@ -101,7 +102,7 @@ class CustomE2EGetService extends AbstractServiceTaskProcessor{
         * @param - execution\r
         *\r
         */\r
-       public void preProcessRequest(Execution execution) {\r
+       public void preProcessRequest(DelegateExecution execution) {\r
                def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
                execution.setVariable("prefix",Prefix)\r
                utils.log("DEBUG", " *** STARTED GenericGetService PreProcessRequest Process*** ", isDebugEnabled)\r
@@ -187,7 +188,7 @@ class CustomE2EGetService extends AbstractServiceTaskProcessor{
         *\r
         * @param - execution\r
         */\r
-       public void obtainServiceInstanceUrlById(Execution execution){\r
+       public void obtainServiceInstanceUrlById(DelegateExecution execution){\r
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
                execution.setVariable("prefix",Prefix)\r
                utils.log("DEBUG", " *** STARTED GenericGetService ObtainServiceInstanceUrlById Process*** ", isDebugEnabled)\r
@@ -269,7 +270,7 @@ class CustomE2EGetService extends AbstractServiceTaskProcessor{
         *\r
         * @param - execution\r
         */\r
-       public void obtainServiceInstanceUrlByName(Execution execution){\r
+       public void obtainServiceInstanceUrlByName(DelegateExecution execution){\r
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
                execution.setVariable("prefix",Prefix)\r
                utils.log("DEBUG", " *** STARTED GenericGetService ObtainServiceInstanceUrlByName Process*** ", isDebugEnabled)\r
@@ -337,7 +338,7 @@ class CustomE2EGetService extends AbstractServiceTaskProcessor{
         *\r
         * @param - execution\r
         */\r
-       public void getServiceObject(Execution execution){\r
+       public void getServiceObject(DelegateExecution execution){\r
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
                execution.setVariable("prefix",Prefix)\r
                utils.log("DEBUG", " *** STARTED GenericGetService GetServiceObject Process*** ", isDebugEnabled)\r