\r
import org.apache.commons.lang3.StringEscapeUtils\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
* @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
*\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
*\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
*\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
aaiResponse = StringEscapeUtils.unescapeXml(aaiResponse)\r
execution.setVariable("GENGS_getServiceResponse", aaiResponse)\r
utils.logAudit("GenericGetService AAI Response: " + aaiResponse)\r
+ aaiResponse = aaiResponse.replaceAll("&", "&")\r
//Process Response\r
if(responseCode == 200 || responseCode == 202){\r
utils.log("DEBUG", "GET Service Received a Good Response Code", isDebugEnabled)\r