code: public Workflow getWorkflow(String workflowId, boolean includeTasks) {
          Preconditions.checkArgument(StringUtils.isNotBlank(workflowId), "workflow id cannot be blank");
          WorkflowPb.Workflow workflow = stub.getWorkflowStatus(
                  WorkflowServicePb.GetWorkflowStatusRequest.newBuilder()
                          .setWorkflowId(workflowId)
                          .setIncludeTasks(includeTasks)
                          .build()
          );
          return protoMapper.fromProto(workflow);
      }
docs: Retrieve a workflow by workflow id
  
  @param workflowId   the id of the workflow
  @param includeTasks specify if the tasks in the workflow need to be returned
  @return the requested workflow