11package io .temporal .nexus ;
22
3+ import com .google .common .base .Strings ;
34import io .temporal .common .Experimental ;
45import java .util .Objects ;
5- import javax .annotation .Nullable ;
66
77/**
88 * Input to {@link TemporalOperationHandler#cancelUpdateWorkflow} describing the workflow update to
99 * cancel.
1010 */
1111@ Experimental
12- public final class CancelUpdateWorkflowExecutionInput {
12+ public final class CancelUpdateWorkflowInput {
1313
1414 private final String workflowId ;
15- @ Nullable private final String runId ;
15+ private final String runId ;
1616 private final String updateId ;
1717
18- public CancelUpdateWorkflowExecutionInput (
19- String workflowId , @ Nullable String runId , String updateId ) {
18+ public CancelUpdateWorkflowInput (String workflowId , String runId , String updateId ) {
2019 this .workflowId = Objects .requireNonNull (workflowId );
21- this .runId = runId ;
20+ this .runId = Strings . nullToEmpty ( runId ) ;
2221 this .updateId = Objects .requireNonNull (updateId );
2322 }
2423
@@ -27,8 +26,7 @@ public String getWorkflowId() {
2726 return workflowId ;
2827 }
2928
30- /** Returns the run ID extracted from the operation token, or null if not present. */
31- @ Nullable
29+ /** Returns the run ID extracted from the operation token, or empty if not present. */
3230 public String getRunId () {
3331 return runId ;
3432 }
0 commit comments