-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
Expected Behavior
WorkflowStub.cancel methods are documented to throw a WorkflowNotFoundException if a workflow does not exist or is already completed
Actual Behavior
A different exception is thrown in explicit internal check and propagated up:
java.lang.IllegalStateException: Null workflowId. Was workflow started?
at io.temporal.client.WorkflowStubImpl.checkStarted(WorkflowStubImpl.java:500)
at io.temporal.client.WorkflowStubImpl.cancel(WorkflowStubImpl.java:446
Steps to Reproduce the Problem
- try to cancel workflow with non-existent id
Specifications
- Version: Temporal Java SDK 1.32.0
- Platform:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels