cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow query - how to order tasks by pooledActor

jdbrown
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

dhalupa
Champ on-the-rise
Champ on-the-rise
I have the similar problem, need to get tasks by date range of certain custom properties. It was finally implemented by extending  JBPMEngine which gives you access to underlying hibernate session and you still have access to all methods which create mappings between JBPM and Alfresco objects. After that you have to expose your new query methods by creating custom service similar to workflow service.

Kind regards,

Denis