-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF32, 11.3, 2021.0
-
Component/s: Query & PageProvider
-
Release Notes Summary:Workflow page providers now used the ecm:isTrashed attribute.
-
Tags:
-
Backlog priority:650
-
Team:PLATFORM
-
Sprint:nxplatform #17
-
Story Points:3
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>
- Is referenced in