Skip to content

Commit 518ef8b

Browse files
authored
Merge pull request #3981 from kaibocai/patch-1
Fix incorrect doc for java sdk
2 parents 77a9d85 + 9ff3dfd commit 518ef8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-patterns.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,8 @@ public class MonitorWorkflow extends Workflow {
496496
}
497497

498498
// Put the workflow to sleep until the determined time
499-
// Note: ctx.createTimer() method is not supported in the Java SDK yet
500499
try {
501-
TimeUnit.SECONDS.sleep(nextSleepInterval.getSeconds());
500+
ctx.createTimer(nextSleepInterval);
502501
} catch (InterruptedException e) {
503502
throw new RuntimeException(e);
504503
}
@@ -745,4 +744,4 @@ External events don't have to be directly triggered by humans. They can also be
745744
- Try out the following examples:
746745
- [Python](https://github.com/dapr/python-sdk/tree/master/examples/demo_workflow)
747746
- [.NET](https://github.com/dapr/dotnet-sdk/tree/master/examples/Workflow)
748-
- [Java](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/workflows)
747+
- [Java](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/workflows)

0 commit comments

Comments
 (0)