code: public WorkflowDef getWorkflowDef(String name, Integer version) {
          Preconditions.checkArgument(StringUtils.isNotBlank(name), "name cannot be blank");
          return getForEntity("metadata/workflow/{name}", new Object[]{"version", version}, WorkflowDef.class, name);
      }
docs: Retrieve the workflow definition
  
  @param name    the name of the workflow
  @param version the version of the workflow def
  @return Workflow definition for the given workflow and version