Attaches task to manager and marks it active.
task
manager
If the task is already attached to a different manager.
Attaches
tasktomanagerand marks it active.