summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Daugherty <rd472p@att.com>2018-08-27 14:14:04 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-27 14:14:04 +0000
commitd5f463c2faf2bd62c81379ab65d0eead5c95df0c (patch)
tree449873d61d3e2f5a60e4adc2fc766fdc03804fa6
parent6fc42f1c31001b6b1fad3dd4a6df865e1e8dff9f (diff)
parentdd964967d3e3bc94aa04f8fb3ce90a42803fc7c2 (diff)
Merge "is sniro request is initial or speed change"
-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"
+ }
}
}