Adding tasks in a workflow