runWorkflow function

Run a workflow on a predictive task