@Override
    public void updateWorkflowTask(WorkflowTask workflowTask) {
        workflowTask.setLoopCondition(loopCondition);

        List<WorkflowTask> loopWorkflowTasks = new ArrayList<>();
        for (Task task : this.loopTasks) {
            loopWorkflowTasks.addAll(task.getWorkflowDefTasks());
        }
        workflowTask.setLoopOver(loopWorkflowTasks);
    }
Similar to a for loop, run tasks for N times

@param taskReferenceName
@param loopCount
@param tasks
java-sdk/src/main/java/com/netflix/conductor/sdk/workflow/def/tasks/DoWhile.java