refactor(Task): Add class constants for task's statuses (closes #4688)