aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
index 762af962..dd1c7c32 100644
--- a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
+++ b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
@@ -121,8 +121,8 @@ public class FeatureServerPool
* Example <field-list>: requestID,CommonHeader.RequestID
*
* Table generated from this example has length 2:
- * table[0] = {"requestID"}
- * table[1] = {"CommonHeader", "RequestID"}
+ * table 0 is "requestID"
+ * table 1 is "CommonHeader", "RequestID"
*/
private static HashMap<String, String[][]> topicToPaths = new HashMap<>();
@@ -320,17 +320,12 @@ public class FeatureServerPool
path[path.length - 1] = fieldName;
}
keyword = sco.getString(path);
+
if (keyword != null) {
- if (conversionFunctionName == null) {
- // We found a keyword -- we don't need to try other paths,
- // so we should break out of the loop
- break;
+ if (conversionFunctionName != null) {
+ keyword = Keyword.convertKeyword(keyword, conversionFunctionName);
}
-
- // we have post-processing to do
- keyword = Keyword.convertKeyword(keyword, conversionFunctionName);
if (keyword != null) {
- // conversion was successful
break;
}
}