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

Fix content view(s) and page provider(s) related to workflow models

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Workflow page providers now used the ecm:isTrashed attribute.
    • Backlog priority:
      650
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #17
    • Story Points:
      3

      Description

      Since trash service has been introduced, some content view(s) and page provider(s) related to workflow models are misbehaving.

      One case is content view admin_workflow_models: when it is used to delete a workflow model (needed when it has been deleted in the Studio project), the workflow model is moved to the trash but is still listed by the content view.

      Another case is when you choose a workflow model to start on a document in the Web UI (button Start process), the drop down still lists the workflow models in the trash. It uses page provider DOC_ROUTING_SEARCH_ALL_ROUTE_MODELS.

      There are probably other cases.

      A workaround for these 2 case is the following XML extension:

        <require>org.nuxeo.ecm.platform.routing.pageproviders</require>
        <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
          point="providers">
      
          <coreQueryPageProvider name="DOC_ROUTING_SEARCH_ALL_ROUTE_MODELS">
            <pattern>
              SELECT * FROM DocumentRoute WHERE ecm:currentLifeCycleState = 'validated' AND ecm:isTrashed=0
            </pattern>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
      
        </extension>
      
        <require>org.nuxeo.ecm.platform.routing.admincenter</require>
        <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
          point="contentViews">
      
          <contentView name="admin_workflow_models">
            <coreQueryPageProvider>
              <property name="coreSession">#{documentManager}</property>
              <pattern>SELECT * FROM DocumentRoute WHERE ecm:path STARTSWITH
                '/document-route-models-root' AND ecm:isTrashed=0
              </pattern>
              <sort ascending="true" column="dc:title"/>
              <pageSize>20</pageSize>
            </coreQueryPageProvider>
          </contentView>
      
        </extension>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m