Repository navigation
docs(java-sdk): document WorkflowInstanceAlreadyExistsException - #5374
Merged
marcduiker merged 4 commits intoOct 15, 2026
Merged
marcduiker merged 4 commits into
marcduiker merged 4 commits into
Conversation
DaprWorkflowClient.scheduleNewWorkflow now throws WorkflowInstanceAlreadyExistsException when the runtime rejects a duplicate instance ID, and NewWorkflowOptions.setEnforceUniqueInstanceId controls whether a completed instance's ID can be reused. Documents both with a short example under Advanced features. Ref: dapr/java-sdk (sdk-workflows client, release-1.19) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017JhKUDV9dbs5JDz2uwZqz5 Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
CasperGN
approved these changes
Oct 13, 2026
CasperGN
left a comment
Contributor
There was a problem hiding this comment.
Round 2 of 3: follow-up on the changes since 3cb0de9.
Every earlier blocker is resolved and the new changes add none.
Nits, not blocking:
- F1: Version reference 'From Dapr 1.19' is ambiguous between runtime and Java SDK version (
sdkdocs/java/content/en/java-sdk-docs/java-workflow/java-workflow-howto.md)
Drafted with AI assistance and reviewed by me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DaprWorkflowClient.scheduleNewWorkflownow throwsWorkflowInstanceAlreadyExistsExceptionwhen the runtime rejects a duplicate instance ID.NewWorkflowOptions.setEnforceUniqueInstanceId(boolean): disabled (default) only rejects an active instance's ID; enabled rejects the ID in any status, including terminal ones.Code reference
sdk-workflows/src/main/java/io/dapr/workflows/client/{WorkflowInstanceAlreadyExistsException,NewWorkflowOptions}.javaondapr/java-sdkrelease-1.19🤖 Generated with Claude Code
https://claude.ai/code/session_017JhKUDV9dbs5JDz2uwZqz5