diff options
author | Bonkur, Venkat <venkat.bonkur@att.com> | 2020-05-06 13:55:43 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-05-06 13:55:44 -0400 |
commit | 35575d4a9ba1d8d7c4a987b8de31ad391b8ff71b (patch) | |
tree | 5c6d2ff09b0174f11fbb662be5b17864f764c4d0 /bpmn/so-bpmn-tasks/src/main/java/org/onap | |
parent | 391b1183cced64f2769fe1f2c3cf5b3f696c1d46 (diff) |
construct for each platform
construct for each platform instead of whole string of platforms
related to network
formated the files
updated the test case per feedback
fixed the compilation error
Issue-ID: SO-2897
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Icc85728fb8ea973d36af863e0b60f0abbaf06219
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/main/java/org/onap')
-rw-r--r-- | bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/aai/tasks/AAICreateTasks.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/aai/tasks/AAICreateTasks.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/aai/tasks/AAICreateTasks.java index a55cd4c169..385b96c0f8 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/aai/tasks/AAICreateTasks.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/aai/tasks/AAICreateTasks.java @@ -321,8 +321,8 @@ public class AAICreateTasks { logger.debug("PlatformName is null in input. Skipping create platform..."); } else { List<String> platforms = splitCDL(platform.getPlatformName()); - platforms.stream().forEach( - platformName -> aaiNetworkResources.createPlatformAndConnectNetwork(platform, network)); + platforms.stream().forEach(platformName -> aaiNetworkResources + .createPlatformAndConnectNetwork(new Platform(platformName), network)); } } } |