Workflow query - how to order tasks by pooledActor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2007 02:44 PM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2007 08:03 AM
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
Kind regards,
Denis
