public Task getTask(String taskId) {
        TaskModel taskModel = getTaskFromDatastore(taskId);
        if (taskModel != null) {
            return taskModel.toTask();
        }
        return null;
    }
Reset the workflow state by removing from the {@link ExecutionDAO} and removing this workflow
from the {@link IndexDAO}.

@param workflowId the workflow id to be reset
core/src/main/java/com/netflix/conductor/core/dal/ExecutionDAOFacade.java