I am using resetWorkflowExecution api present in java-sdk to replay a workflow.
I have observed a few things while replaying same workflow multiple times:
When I replay currently running workflow, history of same runId gets resetted to given historyEventId and it executes workflow. Next time when I try to replay the same, it doesn’t reset the history and doesn’t throw any error also and gives back the same runId.
When I replay a failed workflow, a new runId gets created and I get that as response from api. If workflow fails again and I replay it again, it does not creates a new runId, doesn’t throw any error and gives back the same runId that was returned before.
Is it any known issue?? Or is it possible to reset a workflow multiple times or not? Do I need to set any property in WorkflowOptions or something for making it possible to replay multiple times?