This is a bit confusing, try breaking up the first part:
If there are multiple tasks (like self-assessment followed by ai),
once the the status of the first task is set to DONE, ...