Documentation Center

Background Task Metadata Filter XML Structure

The XML structure for the Metadata Filter on background tasks.

XML structure

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="ISHBackgroundTaskFilterFields" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ishfields">
    <xs:complexType>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="ishfield"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ishfield">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute name="name" use="required" type="ElementName"/>
          <xs:attribute name="level" use="required">
            <xs:simpleType>
              <!-- The level of the ishfield -->
              <xs:restriction base="xs:string">
                <xs:enumeration value="task"/>
                <xs:enumeration value="history"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="ishvaluetype" use="optional" type="IshValueType"/>
          <xs:attribute name="ishoperator" use="optional" default="equal">
            <xs:simpleType>
              <!-- The operator which can be used to filter on the fieldvalue -->
              <xs:restriction base="xs:string">
                <xs:enumeration value="equal"/>
                <xs:enumeration value="notequal"/>
                <xs:enumeration value="in"/>
                <xs:enumeration value="notin"/>
                <xs:enumeration value="like"/>
                <xs:enumeration value="greaterthan"/>
                <xs:enumeration value="lessthan"/>
                <xs:enumeration value="greaterthanorequal"/>
                <xs:enumeration value="lessthanorequal"/>
                <xs:enumeration value="between"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="ElementName">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="IshValueType">
    <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
      <xs:enumeration value="value"/>
      <xs:enumeration value="element"/>
      <xs:enumeration value="id"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

Example

<ishfields>
  <ishfield name="STATUS" level="task" ishvaluetype="element">VBACKGROUNDTASKSTATUSPENDING</ishfield>
</ishfields>