aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@us.att.com>2018-08-23 09:02:40 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2018-08-23 09:02:51 -0400
commitdd964967d3e3bc94aa04f8fb3ce90a42803fc7c2 (patch)
tree9f0bc9545aee700cdb330202990760069787f067 /bpmn/MSOCommonBPMN
parentbb6310f30287b352ad941ecc97aeb278a327d595 (diff)
is sniro request is initial or speed change
Changed logic to determine if sniro request is initial or speed change. Change-Id: I36eeea8860855bf5226560dcc2722a2c27723ef9 Issue-ID: SO-893 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SniroUtils.groovy7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SniroUtils.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SniroUtils.groovy
index fd4ab32215..9b144323c0 100644
--- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SniroUtils.groovy
+++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SniroUtils.groovy
@@ -110,9 +110,12 @@ class SniroUtils{
String requestType = "initial"
List<Resource> resources = decomposition.getServiceResources()
for(Resource r:resources){
- HomingSolution currentSolution = (HomingSolution) r.getCurrentHomingSolution()
+ HomingSolution currentSolution = r.getCurrentHomingSolution()
if(currentSolution != null){
- requestType = "speed changed"
+ String indicator = currentSolution.getServiceInstanceId()
+ if(indicator != null){
+ requestType = "speed changed"
+ }
}
}