aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-tasks
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2019-06-03 10:14:58 -0400
committerAlexis de Talhouët <adetalhouet89@gmail.com>2019-06-03 15:51:26 -0400
commit28d159c84e7e20b6c201996cd05105d7e34509f6 (patch)
treea2fe55e91bdb95fd534514bb693fdc1371457d4a /bpmn/so-bpmn-tasks
parenta2df406852f02374c81afc8231639c7cb482f10e (diff)
Fix ConfigAssignVnfBB and ConfigDeployVnfBB
Change-Id: If5a175ee26e279cf71e38c996a75fa627e5e2c00 Issue-ID: SO-1981 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'bpmn/so-bpmn-tasks')
-rw-r--r--bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ConfigAssignVnf.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ConfigAssignVnf.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ConfigAssignVnf.java
index 8a24330093..b2058b25a0 100644
--- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ConfigAssignVnf.java
+++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ConfigAssignVnf.java
@@ -20,6 +20,7 @@
package org.onap.so.bpmn.infrastructure.flowspecific.tasks;
+import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.onap.so.bpmn.common.BuildingBlockExecution;
@@ -68,7 +69,8 @@ public class ConfigAssignVnf {
ServiceInstance serviceInstance =
extractPojosForBB.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID);
- Map<String, Object> userParams = execution.getGeneralBuildingBlock().getRequestContext().getUserParams();
+ List<Map<String, Object>> userParams =
+ execution.getGeneralBuildingBlock().getRequestContext().getRequestParameters().getUserParams();
ConfigAssignPropertiesForVnf configAssignPropertiesForVnf = new ConfigAssignPropertiesForVnf();
configAssignPropertiesForVnf.setServiceInstanceId(serviceInstance.getServiceInstanceId());
@@ -79,8 +81,10 @@ public class ConfigAssignVnf {
configAssignPropertiesForVnf.setVnfId(vnf.getVnfId());
configAssignPropertiesForVnf.setVnfName(vnf.getVnfName());
- for (Map.Entry<String, Object> entry : userParams.entrySet()) {
- configAssignPropertiesForVnf.setUserParam(entry.getKey(), entry.getValue());
+ for (Map<String, Object> params : userParams) {
+ for (Map.Entry<String, Object> entry : params.entrySet()) {
+ configAssignPropertiesForVnf.setUserParam(entry.getKey(), entry.getValue());
+ }
}
ConfigAssignRequestVnf configAssignRequestVnf = new ConfigAssignRequestVnf();