code: @Service
      public Workflow getExecutionStatus(String workflowId, boolean includeTasks) {
          Workflow workflow = executionService.getExecutionStatus(workflowId, includeTasks);
          if (workflow == null) {
              throw new ApplicationException(ApplicationException.Code.NOT_FOUND,
                      String.format("Workflow with Id: %s not found.", workflowId));
          }
          return workflow;
      }
docs: 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}