code: public List<Workflow> getWorkflows(String name, String correlationId, boolean includeClosed, boolean includeTasks) {
          Preconditions.checkArgument(StringUtils.isNotBlank(name), "name cannot be blank");
          Preconditions.checkArgument(StringUtils.isNotBlank(correlationId), "correlationId cannot be blank");
  
          Object[] params = new Object[]{"includeClosed", includeClosed, "includeTasks", includeTasks};
          List<Workflow> workflows = getForEntity("workflow/{name}/correlated/{correlationId}", params, new GenericType<List<Workflow>>() {
          }, name, correlationId);
          workflows.forEach(this::populateWorkflowOutput);
          return workflows;
      }
docs: Retrieve all workflows for a given correlation id and name
  
  @param name          the name of the workflow
  @param correlationId the correlation id
  @param includeClosed specify if all workflows are to be returned or only running workflows
  @param includeTasks  specify if the tasks in the workflow need to be returned
  @return list of workflows for the given correlation id and name