public void verifyAndRepairWorkflowTasks(WorkflowModel workflow) {
        workflow.getTasks().forEach(this::verifyAndRepairTask);
        // repair the parent workflow if needed
        verifyAndRepairWorkflow(workflow.getParentWorkflowId());
    }
Verify and repair tasks in a workflow.
core/src/main/java/com/netflix/conductor/core/reconciliation/WorkflowRepairService.java