Looking at using the queryTasks() method on the WorkflowService to return tasks sorted by the pooledActor assigned to that task.
Not sure how best to implement this, because I am pretty sure it is not supported out of the box.
PooledActors is an assoc on the task and the WorkflowTaskQuery.OrderBy only supports task properties as well as the JBPMEngine code underneath.
I was hoping there was a cleaner solution than getting the results back and sorting them myself, but maybe not. Open to suggestions.
Thanks.
BTW - Using v2.1E