complete case now takes the task object instead of copying the details to a new instance