cancel
Showing results for 
Search instead for 
Did you mean: 

In Alfresco 5.1, am trying to query Workflow tasks completed after a particular time. final WorkflowTaskQuery query = new WorkflowTaskQuery(); query.setTaskState(WorkflowTaskState.COMPLETED); With this am able to get all completed tasks. What shou

puviarasu
Champ in-the-making
Champ in-the-making

final WorkflowTaskQuery query = new WorkflowTaskQuery();        

query.setTaskState(WorkflowTaskState.COMPLETED);

With this am able to get all completed tasks. What should I do to get list of tasks Completed after a particular time?

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

There is no support for date range querying in the Alfresco-abstracted task query API. So you would have to query all tasks, use the sort parameters to sort by completion date and then iterate, skipping over those that do not fall into your range.