From cc59895ebdd7b946871bee4283ec2f1e3c1492de Mon Sep 17 00:00:00 2001 From: salaboy Date: Tue, 10 Jun 2025 10:30:17 +0800 Subject: [PATCH] exposing createTime(ZonedDateTime) to Dapr Workflows Signed-off-by: salaboy --- .../java/io/dapr/durabletask/TaskOrchestrationContext.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/main/java/io/dapr/durabletask/TaskOrchestrationContext.java b/client/src/main/java/io/dapr/durabletask/TaskOrchestrationContext.java index 921522ee..2d4749ee 100644 --- a/client/src/main/java/io/dapr/durabletask/TaskOrchestrationContext.java +++ b/client/src/main/java/io/dapr/durabletask/TaskOrchestrationContext.java @@ -181,9 +181,7 @@ default Task> anyOf(Task... tasks) { * @param zonedDateTime timestamp with specific zone when the timer should expire * @return a new {@code Task} that completes after the specified delay */ - default Task createTimer(ZonedDateTime zonedDateTime) { - throw new UnsupportedOperationException("This method is not implemented. Please use an orchestration context class that has an implementation for this method."); - } + Task createTimer(ZonedDateTime zonedDateTime); /** * Transitions the orchestration into the {@link OrchestrationRuntimeStatus#COMPLETED} state with the given output.