Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.routing.querymodel--model

This contribution is part of XML component org.nuxeo.ecm.platform.routing.querymodel inside nuxeo-platform-document-routing-core-5.6.jar

Extension point

Extension point model of component QueryModelService.

Contributed items

  • <queryModel name="CURRENT_DOC_ROUTING_SEARCH_ATTACHED_DOC">
          <pattern>
            SELECT * FROM Document WHERE ecm:mixinType != 'Folderish' AND
            ecm:currentLifeCycleState != 'deleted' AND dc:title ILIKE ?
          </pattern>
          <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
          <max>20</max>
        </queryModel>
  • <queryModel name="DOC_ROUTING_SEARCH_ALL_ROUTE_MODELS">
          <pattern>
            SELECT * FROM DocumentRoute WHERE ecm:currentLifeCycleState =
            'validated' AND dc:title ILIKE ?
          </pattern>
          <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
          <max>20</max>
        </queryModel>
  • <queryModel name="SEARCH_ROUTE_BY_ATTACHED_DOC">
          <pattern>
            SELECT * FROM DocumentRoute WHERE (ecm:currentLifeCycleState = 'running'
            OR ecm:currentLifeCycleState = 'ready') AND docri:participatingDocuments
            IN (?)
          </pattern>
          <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
          <max>20</max>
        </queryModel>

XML source

<extension point="model" target="org.nuxeo.ecm.core.search.api.client.querymodel.QueryModelService">

    <queryModel name="CURRENT_DOC_ROUTING_SEARCH_ATTACHED_DOC">
      <pattern>
        SELECT * FROM Document WHERE ecm:mixinType != 'Folderish' AND
        ecm:currentLifeCycleState != 'deleted' AND dc:title ILIKE ?
      </pattern>
      <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
      <max>20</max>
    </queryModel>

    <queryModel name="DOC_ROUTING_SEARCH_ALL_ROUTE_MODELS">
      <pattern>
        SELECT * FROM DocumentRoute WHERE ecm:currentLifeCycleState =
        'validated' AND dc:title ILIKE ?
      </pattern>
      <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
      <max>20</max>
    </queryModel>

    <queryModel name="SEARCH_ROUTE_BY_ATTACHED_DOC">
      <pattern>
        SELECT * FROM DocumentRoute WHERE (ecm:currentLifeCycleState = 'running'
        OR ecm:currentLifeCycleState = 'ready') AND docri:participatingDocuments
        IN (?)
      </pattern>
      <sortable defaultSortAscending="true" defaultSortColumn="dc:title" value="true"/>
      <max>20</max>
    </queryModel>

  </extension>