public Workflow getExecutionStatus(String workflowId, boolean includeTasks) {
        Workflow workflow = executionService.getExecutionStatus(workflowId, includeTasks);
        if (workflow == null) {
            throw new NotFoundException("Workflow with id: %s not found.", workflowId);
        }
        return workflow;
    }
Gets the workflow by workflow id.

@param workflowId id of the workflow.
@param includeTasks Includes tasks associated with workflow.
@return an instance of {@link Workflow}
core/src/main/java/com/netflix/conductor/service/WorkflowServiceImpl.java