It has been corrected as shown on the following commit ,
https://github.com/droolsjbpm/jbpm/commit/4a47527163854b233cdb9599f54c9320e945a372
Now TaskServiceSession uses proper query (TasksAssignedAsPotentialOwnerByStatusWithGroups) from Taskorm.xml.
Reply to this message by going to Community
Start a new discussion in jBPM at Community