feat(rest): embed case definition in HAL task and task list

related to #CAM-2940
fix(rest): fix failing test cases of variable rewrite

related to #CAM-2903