aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOInfrastructureBPMN/src/main/groovy
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-09-13 06:12:51 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-13 06:12:51 +0000
commit7df197114475c485d32facc96cf602b3f1d0e4c1 (patch)
tree05fa8be9225aa7e64d8c163ef03fcc7dda8fa3e7 /bpmn/MSOInfrastructureBPMN/src/main/groovy
parent92ffbb4a56b1f84ed130b04ca3a9954ce610a02a (diff)
parent1208bda04f54b727cef27f4b7a7cb611c833c67d (diff)
Merge "Fix hardcoded orchestration-status"
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy')
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateServiceInstance.groovy8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateServiceInstance.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateServiceInstance.groovy
index 54d30d6fb2..0eb16a2d9e 100644
--- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateServiceInstance.groovy
+++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateServiceInstance.groovy
@@ -248,13 +248,15 @@ public class DoCreateServiceInstance extends AbstractServiceTaskProcessor {
if (siParamsXml == null)
siParamsXml = ""
execution.setVariable("siParamsXml", siParamsXml)
-
+
//AAI PUT
- String oStatus= "Active"
+ String oStatus = execution.getVariable("initialStatus") ?: ""
if ("TRANSPORT".equalsIgnoreCase(serviceType))
{
oStatus = "Created"
}
+
+ String statusLine = isBlank(oStatus) ? "" : "<orchestration-status>${oStatus}</orchestration-status>"
AaiUtil aaiUriUtil = new AaiUtil(this)
String aai_uri = aaiUriUtil.getBusinessCustomerUri(execution)
@@ -264,7 +266,7 @@ public class DoCreateServiceInstance extends AbstractServiceTaskProcessor {
<service-instance-name>${serviceInstanceName}</service-instance-name>
<service-type>${serviceType}</service-type>
<service-role>${serviceRole}</service-role>
- <orchestration-status>${oStatus}</orchestration-status>
+ ${statusLine}
<model-invariant-id>${modelInvariantUuid}</model-invariant-id>
<model-version-id>${modelUuid}</model-version-id>
</service-instance>""".trim()