Issue (View Online)

Key: NXP-1380
Issue Type: Improvement Improvement
Status: Resolved Resolved
Priority: Major Major
Resolution: Fixed
Assignee: Julien Anguenot
Reporter: Florent Guillaume

Operations

View all
View comments
View history
WAPI needs a method to get all workitems 
Updated: 26/07/07 15:00   Created: 24/07/07 14:02  

The following issue has been resolved as FIXED.

Author: Julien Anguenot
Date: 26/07/07 15:00
Comment:
fixed

See WAPISample for an example of how to use it. Only work item due date filter are implemented right now.

http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-api-sample/trunk/src/main/java/org/nuxeo/ecm/sample/workflow/WAPISample.java

>>>

   WAPI wapi = WAPIBusinessDelegate.getWAPI();
    
                Date deadline = new Date();
                WMFilter filter = new WMFilterImpl(
                        WorkflowConstants.WORKFLOW_TASK_PROP_DUE_DATE, WMFilter.LT,
                        deadline);
    
                WMWorkItemIterator it = wapi.listWorkItems(filter);
                System.out.println("Number of items where due date is strictly before now :"
                        + it.size());
                
                filter = new WMFilterImpl(
                        WorkflowConstants.WORKFLOW_TASK_PROP_DUE_DATE, WMFilter.GT,
                        deadline);
                it = wapi.listWorkItems(filter);
                System.out.println("Number of items where due date is strictly after now :"
                        + it.size());

Project: Nuxeo Enterprise Platform 5
Components: Workflow
Affects Versions: 5.1 M3
Fix Versions: 5.1 RC

 Description   
WAPI needs one or several methods to answer the following use case:
- every night, we need to find all current workflow tasks who have the property "expiration date" earlier than the current date.

To do that, we need to iterate on all tasks instances, but there's currently no method to do that.


This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.10-260 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to