A dedicated method for this was added 5.4: getTasksByStatusByProcessId
If you cannot upgrade to 5.4 then probably the only way is to use deprecated query method on taskClient as a workaround.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community