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

optimise list workflow instance in dashboard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.6
    • Component/s: None
    • Impact type:
      API change, Content model Change
    • Upgrade notes:
      Hide
      • Added the method boolean selectThisItem(WMWorkItemInstance ) to the WorkflowDocumentSecurityPolicy interface. It should tell either this work instance should be selected for display in the dashboard. A default method in AbstractWorkflowSecurityPolicy returns always true.
      • Added method ResultSlice<WMWorkItemInstance> getWorkItemsFor(
        List<WMParticipant> participants, String state,
        int firstResult, int maxResults) to get paginated workinstances fetch
      • every call to WAPI.startProcess should have WorkflowConstants.WORKFLOW_CREATOR set to currentUser.getName() to get the getWorkItemsFor methods to work correctly. This is already the case in nuxeo by default but might not be the case in custom workflows

      A workflow should always have a variable named "author" (WorkflowConstants.WORKFLOW_CREATOR)

      Show
      Added the method boolean selectThisItem(WMWorkItemInstance ) to the WorkflowDocumentSecurityPolicy interface. It should tell either this work instance should be selected for display in the dashboard. A default method in AbstractWorkflowSecurityPolicy returns always true. Added method ResultSlice<WMWorkItemInstance> getWorkItemsFor( List<WMParticipant> participants, String state, int firstResult, int maxResults) to get paginated workinstances fetch every call to WAPI.startProcess should have WorkflowConstants.WORKFLOW_CREATOR set to currentUser.getName() to get the getWorkItemsFor methods to work correctly. This is already the case in nuxeo by default but might not be the case in custom workflows A workflow should always have a variable named "author" (WorkflowConstants.WORKFLOW_CREATOR)

      Description

      atm, to list workflow instance for 1 user we have a number of query in the db == to:
      number of group * number of process definition * number of process instance.
      This could be done in 1 query.

      Other call needs to be checked as well

        Attachments

          Activity

            People

            • Assignee:
              arussel Alexandre Russel
              Reporter:
              arussel Alexandre Russel
              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