Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2671

make new paginated WorkflowEngine.getWorkItemsFor API to be able to select the order by attribute and ascending / descending parameter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.5, 5.2 M2
    • Fix Version/s: 5.1.6, 5.2 M3
    • Component/s: None
    • Impact type:
      API change
    • Upgrade notes:
      Hide
      • allow former (NXP-2481) existing method to throw WMWorkflowException:

      ResultSlice<WMWorkItemInstance> getWorkItemsFor(
      List<WMParticipant> participants, String state, int firstResult,
      int maxResult) throws WMWorkflowException;

      => calling code should be updated to handle that exception in case the WF engine is unable to get the tasks.

      • add new method to the WorkflowEngine interface:

      ResultSlice<WMWorkItemInstance> getWorkItemsFor(
      List<WMParticipant> participants, String state, int firstResult,
      int maxResults, String orderBy, boolean orderAscending)
      throws WMWorkflowException;

      Eventual implementing classes should be updated accordingly.

      Show
      allow former ( NXP-2481 ) existing method to throw WMWorkflowException: ResultSlice<WMWorkItemInstance> getWorkItemsFor( List<WMParticipant> participants, String state, int firstResult, int maxResult) throws WMWorkflowException; => calling code should be updated to handle that exception in case the WF engine is unable to get the tasks. add new method to the WorkflowEngine interface: ResultSlice<WMWorkItemInstance> getWorkItemsFor( List<WMParticipant> participants, String state, int firstResult, int maxResults, String orderBy, boolean orderAscending) throws WMWorkflowException; Eventual implementing classes should be updated accordingly.

      Attachments

        Activity

          People

          • Assignee:
            ogrisel Olivier Grisel
            Reporter:
            ogrisel Olivier Grisel
            Participants:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day, 1 hour
              1d 1h
              Remaining:
              Remaining Estimate - 1 day, 1 hour
              1d 1h
              Logged:
              Time Spent - Not Specified
              Not Specified