Implement TODO: query workflow instance using id instead of externalId