BS-10790 : Fix unstable test ProcessExecutionTest.checkArchiveDate

- Replace old mechanism to check task on database by the new with the event