We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d4eb88 commit da0391aCopy full SHA for da0391a
1 file changed
temporal-sdk/src/main/java/io/temporal/nexus/CancelWorkflowRunInput.java
@@ -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