public WorkflowDef getWorkflowDef(String name, Integer version) {
        Validate.notBlank(name, "name cannot be blank");
        return getForEntity(
                "metadata/workflow/{name}",
                new Object[] {"version", version},
                WorkflowDef.class,
                name);
    }
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
client/src/main/java/com/netflix/conductor/client/http/MetadataClient.java