Previous Topic: XML Schema for UE Job DefinitionsNext Topic: Example UE Job Definition


UE Job Definition Schema

<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema FormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
  <xsd:annotation>
    <xsd:documentation>
      #*******************************************************
      # Header: Copyright, version source control details
      #*******************************************************
    </xsd:documentation>
  </xsd:annotation>
  <xsd: name="WgnTask">
    <xsd:complexType>
      <xsd:sequence>
        <xsd: minOccurs="0" maxOccurs="1" ref="schedule" />
        <xsd: minOccurs="1" maxOccurs="1" ref="configuration" />
      </xsd:sequence>
      <xsd:attribute name="module_name"  use="required" type="xsd:string" />
      <xsd:attribute name="guid"         use="required" type="xsd:string" />
      <xsd:attribute name="title"        use="optional" type="xsd:string" />
      <xsd:attribute name="description"  use="optional" type="xsd:string" />
      <xsd:attribute name="log_max_file_size"
                                         use="optional" type="xsd:unsignedLong" />
      <xsd:attribute name="log_max_num_files"
                                         use="required" type="xsd:unsignedLong" />
    </xsd:complexType>
  </xsd:>
  <xsd: name="schedule">
    <xsd:complexType>
      <xsd:attribute name="interval"     use="required" type="xsd:unsignedLong" />
      <xsd:attribute name="task_server"  use="optional" type="xsd:string" />
      <xsd:attribute name="parallel"     use="optional" type="xsd:boolean" />
    </xsd:complexType>
  </xsd:>
  <xsd: name="configuration">
    <xsd:complexType>
      <xsd:sequence>
        <xsd: minOccurs="0" maxOccurs="1"          ref="connection" />
        <xsd: minOccurs="0" maxOccurs="unbounded"  ref="item" />
      </xsd:sequence>
    </xsd:complexType>
  </xsd:>
  <xsd: name="item">
    <xsd:complexType>
      <xsd:attribute name="name"   use="required"  type="xsd:string" />
      <xsd:attribute name="value"  use="required"  type="xsd:string" />
    </xsd:complexType>
  </xsd:>
  <xsd: name="connection">
    <xsd:complexType>
      <xsd:attribute name="server"    use="required"  type="xsd:string" />
      <xsd:attribute name="user"      use="optional"  type="xsd:string" />
      <xsd:attribute name="password"  use="optional"  type="xsd:string" />
    </xsd:complexType>
  </xsd:>