diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-05-31 17:46:32 +0800 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-05-31 17:46:32 +0800 |
commit | 9ac13899b368c83566c280157a51c49f99cad4f3 (patch) | |
tree | bc87a02a577f854e648d0a2d0af63eacdd70c667 /bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp | |
parent | c8981f10b0332aa30a3d1861409b3e9e5296cabe (diff) |
Introduce resource sequence as per modelname
Resource sequence can be defined in mso.apihandler-infra.properties
file as per following:
mso.workflow.custom.<service-model-name>.resource.sequence=<, separated
values>
Change-Id: I156cfcfea4936be541014726dc6063f7f4e2d2b4
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp')
-rw-r--r-- | bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy index 9cdbdfde1c..ab84168007 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy @@ -105,7 +105,10 @@ public class DoCreateResources extends AbstractServiceTaskProcessor List<NetworkResource> networkResourceList = new ArrayList<NetworkResource>() List<Resource> sequencedResourceList = new ArrayList<Resource>() - def resourceSequence = BPMNProperties.getResourceSequenceProp() + + String serviceDecompose = execution.getVariable("serviceDecomposition") + String serviceModelName = jsonUtil.getJsonValue(serviceDecompose, "serviceResources.modelInfo.modelName") + def resourceSequence = BPMNProperties.getResourceSequenceProp(serviceModelName) if(resourceSequence != null) { // sequence is defined in config file |