feat(engine/history): unify activity instance query mapping

related to #CAM-1656
fix(engine/receive): sequential test case with user task

related to #CAM-1612