Platform Explorer / CMF 1.8

Component org.nuxeo.ecm.platform.routing.querymodel

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.ecm.platform.routing.querymodel">

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

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

    <queryModel name="DOC_ROUTING_SEARCH_ALL_ROUTE_MODELS">
      <pattern>
        SELECT * FROM DocumentRoute WHERE ecm:currentLifeCycleState =
        'validated' AND dc:title LIKE ?
      </pattern>
      <sortable value="true" defaultSortColumn="dc:title"
        defaultSortAscending="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 value="true" defaultSortColumn="dc:title"
        defaultSortAscending="true" />
      <max>20</max>
    </queryModel>

  </extension>

</component>