Skip to content

Commit

Permalink
Update calls to put to not accept null
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisLainez committed Apr 27, 2024
1 parent eece524 commit ca323e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public List<String> getWorkflowsByTimePeriod(
*/
public void runDecider(String workflowId) {
Validate.notBlank(workflowId, "workflow id cannot be blank");
put("workflow/decide/{workflowId}", null, null, workflowId);
put("workflow/decide/{workflowId}", null, "", workflowId);
}

/**
Expand All @@ -322,7 +322,7 @@ public void runDecider(String workflowId) {
*/
public void pauseWorkflow(String workflowId) {
Validate.notBlank(workflowId, "workflow id cannot be blank");
put("workflow/{workflowId}/pause", null, null, workflowId);
put("workflow/{workflowId}/pause", null, "", workflowId);
}

/**
Expand All @@ -332,7 +332,7 @@ public void pauseWorkflow(String workflowId) {
*/
public void resumeWorkflow(String workflowId) {
Validate.notBlank(workflowId, "workflow id cannot be blank");
put("workflow/{workflowId}/resume", null, null, workflowId);
put("workflow/{workflowId}/resume", null, "", workflowId);
}

/**
Expand All @@ -348,7 +348,7 @@ public void skipTaskFromWorkflow(String workflowId, String taskReferenceName) {
put(
"workflow/{workflowId}/skiptask/{taskReferenceName}",
null,
null,
"",
workflowId,
taskReferenceName);
}
Expand Down

0 comments on commit ca323e5

Please sign in to comment.