Please refer the screenshot where we have implemented process to restart approval in which we create tasks for approval based on the logic.
Now this process is called while processing a task(call it TaskA), After starting Restart Aprroval when we try to create new task for approval(call it TaskB) and check for existing cases there is always case for TaskA in RUNNING state because of which we cannot create new task TaskB.
This works fine in designer, while creating TaskB, case of TaskA is always in DONE state.
But once we deploy it on test,case of TaskA is always in RUNNING state.
Please advise how can we put existing cases in DONE state.