boolean scheduleNextIteration(
            TaskModel doWhileTaskModel, WorkflowModel workflow, WorkflowExecutor workflowExecutor) {
        LOGGER.debug(
                "Scheduling loop tasks for task {} as condition {} evaluated to true",
                doWhileTaskModel.getTaskId(),
                doWhileTaskModel.getWorkflowTask().getLoopCondition());
        workflowExecutor.scheduleNextIteration(doWhileTaskModel, workflow);
        return true; // Return true even though status not changed. Iteration has to be updated in
        // execution DAO.
    }
Check if all tasks in the current iteration have reached terminal state.

@param doWhileTaskModel The {@link TaskModel} of DO_WHILE.
@param referenceNameToModel Map of taskReferenceName to {@link TaskModel}.
@return true if all tasks in DO_WHILE.loopOver are in <code>referenceNameToModel</code> and
    reached terminal state.
core/src/main/java/com/netflix/conductor/core/execution/tasks/DoWhile.java