Get all tasks by user

Hello,
How do we get all tasks assigned to a user given and instance id ? I need to list all active tasks currently assigned to a user.

Thanks
Venkatesh

taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(username).list();