Skip to content

Commit 9ac1af3

Browse files
authored
New Update-with-Start API (#2337)
1 parent c7fcf12 commit 9ac1af3

File tree

20 files changed

+1905
-1117
lines changed

20 files changed

+1905
-1117
lines changed

temporal-sdk/src/main/java/io/temporal/client/UpdateOptions.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ public void validate() {
154154
}
155155
}
156156

157+
void validateWaitForCompleted() {
158+
if (waitForStage != null && waitForStage != WorkflowUpdateStage.COMPLETED) {
159+
throw new IllegalArgumentException(
160+
"waitForStage must be unspecified or " + WorkflowUpdateStage.COMPLETED);
161+
}
162+
}
163+
157164
public static final class Builder<T> {
158165
private String updateName;
159166
private String updateId;

0 commit comments

Comments
 (0)