Daisy documentation
 PreviousHomeNext 
8.4.2 ExampleBook Index8.4.4 Query reference tables

8.4.3 Syntax

This is a reference of the query XML syntax. Note that this XML doesn't mention whether it is a query on tasks or process instances, this is determined by the URL to which the XML is posted.

<query xmlns="http://outerx.org/daisy/1.0#workflow"
       chunkOffset="[1-based offset]" chunkLength="...">

  [ selectClause is optional, if not present full entities
    will be returned ]
  <selectClause>
    <select name="[name of built-in prop or a variable"
            type="property|task_variable|process_variable"/>
    [ ...more select elements... ]
  </selectClause>

  <conditions meetAllCriteria="true|false">
    [zero or more of the following condition-describing elements]

    <propertyCondition name="[see tables of properties]"
                       operator="[see table of operators]"
                       valueType="[see tables of properties]">
      [zero or more of the following elements, corresponding
       to the valueType and the number of operands the
       operator takes]
      <string>...</string>
      <date>[date in XML Schema format]</date>
      <dateTime>[dateTime in XML Schema format]</dateTime>
      <long>...</long>
      <daisyLink documentId="..." branchId="..." languageId="..." [version="..."]/>
      <actor id="..." pool="true|false">
        [in case of pools, a list of nested id elements can be used]
        <id>...</id>
      </actor>
      <user>[numeric user id]</user>
      <boolean>true|false</boolean>
    </propertyCondition>

    <taskVariableCondition [similar to property conditions] />

    <processVariableCondition [similar to property conditions] />

    <specialCondition name="[see list of special conditions">
      [any arguments the special condition takes, the value
       tags should contain type-specific tags as described
       for propertyCondition, e.g. <value><string>...</string></value>]
      <value>...</value>
    </specialCondition>
  </conditions>

  <orderByClause>
    [zero or more orderBy elements, these are very similar
     to the selectClause but with the added possibility to
     specify the sort order]
    <orderBy name="..."
             type="property|task_variable|process_variable"
             sortOrder="ascending|descending"/>
  </orderByClause>
</query>
 PreviousHomeNext 
8.4.2 Example8.4.4 Query reference tables