Skip to content

Commit

Permalink
code changes for terminateWorkflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh Jagannath Padave committed Nov 18, 2024
1 parent b29c947 commit d0967c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void deleteWorkflow(String workflowId, boolean archiveWorkflow) {
* @param reason the reason to be logged and displayed
* @return the {@link BulkResponse} contains bulkErrorResults and bulkSuccessfulResults
*/
public BulkResponse<String> terminateWorkflows(List<String> workflowIds, String reason) {
public BulkResponse terminateWorkflows(List<String> workflowIds, String reason) {
Validate.isTrue(!workflowIds.isEmpty(), "workflow id cannot be blank");
return postForEntity(
"workflow/bulk/terminate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/**
* Response object to return a list of succeeded entities and a map of failed ones, including error
* message, for the bulk request.
*
* @param <T> the type of entities included in the successful results
*/
public class BulkResponse<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void deleteWorkflow(String workflowId, boolean archiveWorkflow) {
* @param reason the reason to be logged and displayed
* @return the {@link BulkResponse} contains bulkErrorResults and bulkSuccessfulResults
*/
public BulkResponse<String> terminateWorkflows(List<String> workflowIds, String reason) {
public BulkResponse terminateWorkflows(List<String> workflowIds, String reason) {
Validate.isTrue(!workflowIds.isEmpty(), "workflow id cannot be blank");

ConductorClientRequest request = ConductorClientRequest.builder()
Expand Down

0 comments on commit d0967c1

Please sign in to comment.