getWorkflow function

Obtain the workflow object corresponding to an ID