def METHOD_NAME(cls, name):
    # Internal helper method
    # Finds a workflow with the name (can be a name or id)
    # Returns a dict objects of the workflow
    listendef = cls.list_enabled_definitions()
    for tmp in listendef:
        if tmp["name"] == name:
            return tmp
        elif tmp["id"] == name:
            return tmp
    # Did not find any enabled workflow with name/id
    return None