From fcad094d0f8caa918009fefd3eb1aabb8acc25d2 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Wed, 8 Aug 2018 12:02:58 +0530 Subject: SDNC request template for delete Site SDNC request template for delete Site Change-Id: Id40ae3dbc2a8989b69dd20be1f27d98babd8bb42 Issue-ID: SO-689 Signed-off-by: subhash kumar singh --- .../scripts/DeleteSDNCNetworkResource.groovy | 49 ++++++++++++++++++---- 1 file changed, 41 insertions(+), 8 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-flows') diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteSDNCNetworkResource.groovy b/bpmn/so-bpmn-infrastructure-flows/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteSDNCNetworkResource.groovy index a18cee253e..3dcd1ed259 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteSDNCNetworkResource.groovy +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteSDNCNetworkResource.groovy @@ -145,8 +145,11 @@ public class DeleteSDNCNetworkResource extends AbstractServiceTaskProcessor { String modelName = resourceInputObj.getResourceModelInfo().getModelName() String modelVersion = resourceInputObj.getResourceModelInfo().getModelVersion() // 1. prepare assign topology via SDNC Adapter SUBFLOW call - String sndcTopologyDeleteRequest = - """ @@ -177,8 +180,12 @@ public class DeleteSDNCNetworkResource extends AbstractServiceTaskProcessor { ${MsoUtils.xmlEscape(serviceInstanceId)} ${MsoUtils.xmlEscape(globalCustomerId)} + - + + + + ${MsoUtils.xmlEscape(modelInvariantUuid)} ${MsoUtils.xmlEscape(modelCustomizationUuid)} @@ -186,13 +193,39 @@ public class DeleteSDNCNetworkResource extends AbstractServiceTaskProcessor { ${MsoUtils.xmlEscape(modelVersion)} ${MsoUtils.xmlEscape(modelName)} - - - - + + + + + + + + + + + + + + + + + + + + + + + """.trim() - + break + + + + default: + sndcTopologyDeleteRequest = "" + } + String sndcTopologyDeleteRequesAsString = utils.formatXml(sndcTopologyDeleteRequest) utils.logAudit(sndcTopologyDeleteRequesAsString) execution.setVariable("sdncAdapterWorkflowRequest", sndcTopologyDeleteRequesAsString) -- cgit 1.2.3-korg