I am facing the same problem .
Kindly suggest the best way to retrieve the taskID . Getting tasks by users seem like an unsure method as the processInstance can have multiple active tasks allocated to the same user at the same time.
Help is requested :-/