Fix the variable to retrieve resource sequence 42/72542/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 13 Nov 2018 13:37:45 +0000 (19:07 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 13 Nov 2018 13:37:45 +0000 (19:07 +0530)
Fix the variable to retrieve resource sequence.

Change-Id: I331c87f5dd3fe4de3bc220db281368bd4b6dae1a
Issue-ID: SO-689
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/properties/BPMNProperties.java

index 60f109a..0d7c4ab 100644 (file)
@@ -21,6 +21,7 @@ package org.onap.so.bpmn.infrastructure.properties;
 
 import java.util.Arrays;
 import java.util.List;
+import org.onap.so.bpmn.core.UrnPropertiesReader;
 
 import org.onap.so.bpmn.core.UrnPropertiesReader;
 import org.onap.so.logger.MsoLogger;
@@ -37,7 +38,7 @@ public class BPMNProperties {
     }
 
     public static List<String> getResourceSequenceProp(String input) {
-        String resourceSequence = getProperty("mso.workflow.custom." + input + ".resource.sequence", null);
+        String resourceSequence = UrnPropertiesReader.getVariable("mso.workflow.custom."+ input + ".resource.sequence");
         if (resourceSequence != null) {
             return Arrays.asList(resourceSequence.split(","));
         }