Get a workflow definition

Retrieves a workflow definition by name and optionally by version.