updated line of business query to use nodes only 16/117316/1
authorBenjamin, Max (mb388a) <mb388a@att.com>
Mon, 1 Feb 2021 22:30:29 +0000 (17:30 -0500)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Mon, 1 Feb 2021 22:30:29 +0000 (17:30 -0500)
updated line of business query to use nodes only

Issue-ID: SO-3510
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I8b43970795cf4dab6c9af48f3563857399761260

bpmn/MSOCommonBPMN/src/main/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetup.java

index d971689..7c283ab 100644 (file)
@@ -1936,7 +1936,8 @@ public class BBInputSetup implements JavaDelegate {
         if (relationshipsOp.isPresent()) {
             Relationships relationships = relationshipsOp.get();
             this.mapPlatform(relationships.getByType(Types.PLATFORM, uri -> uri.nodesOnly(true)), genericVnf);
-            this.mapLineOfBusiness(relationships.getByType(Types.LINE_OF_BUSINESS), genericVnf);
+            this.mapLineOfBusiness(relationships.getByType(Types.LINE_OF_BUSINESS, uri -> uri.nodesOnly(true)),
+                    genericVnf);
             genericVnf.getVolumeGroups().addAll(mapVolumeGroups(relationships.getByType(Types.VOLUME_GROUP)));
             genericVnf.getInstanceGroups().addAll(mapInstanceGroups(relationships.getByType(Types.INSTANCE_GROUP)));
         }