I have a method that gets the details of a workflow. In order to do that I’m calling a query method. But when I call a query method on a terminated workflow, it throws IllegalArgumentException. On completed workflows it works fine. Is it expected that I cannot call query methods on terminated workflows?
When I checked the code, it’s the handleNonStatefulEvent method in WorkflowStateMachines.java that’s throwing the error when event type is EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED.
I’m using temporal-sdk:1.2.0