added code the poll for and respond to workflow instantiation