summaryrefslogtreecommitdiffstats
path: root/rules/ccvnp-rule.drl
diff options
context:
space:
mode:
Diffstat (limited to 'rules/ccvnp-rule.drl')
-rw-r--r--rules/ccvnp-rule.drl6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules/ccvnp-rule.drl b/rules/ccvnp-rule.drl
index a4d2c06..afc4c06 100644
--- a/rules/ccvnp-rule.drl
+++ b/rules/ccvnp-rule.drl
@@ -75,12 +75,14 @@ function Map<String, Object> getAdditionalResourceInfo(String networkId, String
StringBuilder sb = new StringBuilder();
for(int i = 0; i < instances.size(); ++i) {
JSONObject o = instances.getJSONObject(i);
- String name = instances.getJSONObject(i).getString("service-instance-name");
- ret.put(name + ".input-parameters", "TBD");
+ String name = o.getString("service-instance-name");
+ ret.put(name + ".input-parameters", o.getString("input-parameters"));
sb.append(name).append(",");
}
ret.put("service-instance.service-instance-name", sb.substring(0, sb.length() -1).toString());
ret.put("vserver.vserver-name", "TBD");
+ ret.put("globalSubscriberId", instances.getJSONObject(0).getString("globalSubscriberId"));
+ ret.put("serviceType", instances.getJSONObject(0).getString("serviceType"));
return ret;
}