Workflow when started again, with the same workflowID, but it gets a different runID. Is there a way to retrieve such executions (containing different runID) of a given workflow ID?
I explored ListClosedWorkflowExecutionsRequest
API, but it just lists all the workflow executions, not for a particular workflowID.
The problem I am trying to solve is: There were many workflows that failed for some reason. In restarting the process, I didn't include a correct time filter and few of them were restarted while a few got skipped. So I am trying to list all failed workflow IDs using ListClosedWorkflowExecutionsRequest
. For each workflowID, fetch all executions and if latest of them is successful, skip it else restart.
I am little new to SWF, so is there a better way to accomplish the same?