public Workflow getWorkflow(String workflowId, boolean includeTasks) {
        return getWorkflowModelFromDataStore(workflowId, includeTasks).toWorkflow();
    }
Fetches the {@link Workflow} object from the data store given the id. Attempts to fetch from
{@link ExecutionDAO} first, if not found, attempts to fetch from {@link IndexDAO}.

@param workflowId the id of the workflow to be fetched
@param includeTasks if true, fetches the {@link Task} data in the workflow.
@return the {@link Workflow} object
@throws NotFoundException no such {@link Workflow} is found.
@throws TransientException parsing the {@link Workflow} object fails.
core/src/main/java/com/netflix/conductor/core/dal/ExecutionDAOFacade.java