wflow_run function

Run the code