Skip to content

Commit da0391a

Browse files
Switch to CancelWorkflowRunInput
1 parent 5d4eb88 commit da0391a

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package io.temporal.nexus;
2+
3+
import io.temporal.common.Experimental;
4+
import java.util.Objects;
5+
6+
/**
7+
* Input to {@link TemporalOperationHandler#cancelWorkflowRun} describing the workflow run to
8+
* cancel.
9+
*/
10+
@Experimental
11+
public final class CancelWorkflowRunInput {
12+
13+
private final String workflowId;
14+
15+
public CancelWorkflowRunInput(String workflowId) {
16+
this.workflowId = Objects.requireNonNull(workflowId);
17+
}
18+
19+
/** Returns the workflow ID extracted from the operation token. */
20+
public String getWorkflowId() {
21+
return workflowId;
22+
}
23+
}

0 commit comments

Comments
 (0)