From 720d2b907bd2a18905687f5ed41fc6c8d78a7f59 Mon Sep 17 00:00:00 2001 From: Shailesh Jagannath Padave Date: Mon, 18 Nov 2024 15:03:29 +0530 Subject: [PATCH] code changes for BulkResponse in client --- .../netflix/conductor/common/model/BulkResponse.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java b/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java index 99b3f48f9..c25ffd3c5 100644 --- a/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java +++ b/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java @@ -22,14 +22,14 @@ * Response object to return a list of succeeded entities and a map of failed ones, including error * message, for the bulk request. */ -public class BulkResponse { +public class BulkResponse { /** * Key - entityId Value - error message processing this entity */ private final Map bulkErrorResults; - private final List bulkSuccessfulResults; + private final List bulkSuccessfulResults; private final String message = "Bulk Request has been processed."; @@ -38,7 +38,7 @@ public BulkResponse() { this.bulkErrorResults = new HashMap<>(); } - public List getBulkSuccessfulResults() { + public List getBulkSuccessfulResults() { return bulkSuccessfulResults; } @@ -46,8 +46,8 @@ public Map getBulkErrorResults() { return bulkErrorResults; } - public void appendSuccessResponse(String id) { - bulkSuccessfulResults.add(id); + public void appendSuccessResponse(T result) { + bulkSuccessfulResults.add(result); } public void appendFailedResponse(String id, String errorMessage) {