Merge "Updated fields on sniro request"
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / bpmn / buildingblock / SniroHomingV2.java
index e83c27c..92b4e21 100644 (file)
@@ -404,9 +404,9 @@ public class SniroHomingV2 {
                        for(Candidate c:required){
                                org.onap.so.client.sniro.beans.Candidate can = new org.onap.so.client.sniro.beans.Candidate();
                                org.onap.so.client.sniro.beans.CandidateType type = new org.onap.so.client.sniro.beans.CandidateType();
-                               type.setName(c.getCandidateType().getName());
-                               can.setCandidateType(type);
-                               can.setCandidates(c.getCandidates());
+                               type.setName(c.getIdentifierType().getName());
+                               can.setIdentifierType(type);
+                               can.setIdentifiers(c.getIdentifiers());
                                can.setCloudOwner(c.getCloudOwner());
                                cans.add(can);
                        }
@@ -417,9 +417,9 @@ public class SniroHomingV2 {
                        for(Candidate c:excluded){
                                org.onap.so.client.sniro.beans.Candidate can = new org.onap.so.client.sniro.beans.Candidate();
                                org.onap.so.client.sniro.beans.CandidateType type = new org.onap.so.client.sniro.beans.CandidateType();
-                               type.setName(c.getCandidateType().getName());
-                               can.setCandidateType(type);
-                               can.setCandidates(c.getCandidates());
+                               type.setName(c.getIdentifierType().getName());
+                               can.setIdentifierType(type);
+                               can.setIdentifiers(c.getIdentifiers());
                                can.setCloudOwner(c.getCloudOwner());
                                cans.add(can);
                        }