Share via


SetAssignmentWorkData Schema

Applies to: Office 2010 | Project 2010 | Project Server 2010 | SharePoint Server 2010

The following shows the SetAssignmentWorkData schema for Microsoft Project Server 2010. It is unchanged from Microsoft Office Project Server 2007.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="Changes" nillable="false">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Proj" nillable="false" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Assn" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:choice>
                      <xs:element name="Change">
                        <xs:complexType>
                          <xs:all maxOccurs="1">
                            <xs:element name="TotalWork" type="xs:unsignedInt" minOccurs="1"/>
                            <xs:element name="RemainingWork" type="xs:unsignedInt" minOccurs="1"/>
                            <xs:element name="ActualWork" type="xs:unsignedInt" minOccurs="1"/>
                            <xs:element name="Comments" type="xs:string" minOccurs="0"/>
                            <xs:element name="StatusGuid" type="GUID" minOccurs="0"/>
                            <xs:element name="Status" type="xs:string" minOccurs="0"/>
                          </xs:all>
                        </xs:complexType>
                      </xs:element>
                      <xs:element name="PeriodChange" maxOccurs="unbounded">
                        <xs:complexType mixed="true">
                          <xs:choice maxOccurs="unbounded">
                            <xs:element name="RemainingWork" type="xs:unsignedInt" minOccurs="1"/>
                            <xs:element name="Comments" type="xs:string" nillable="false" minOccurs="0"/>
                            <xs:choice maxOccurs="unbounded">
                              <xs:element name="ActualWork" maxOccurs="unbounded">
                                <xs:complexType>
                                  <xs:simpleContent>
                                    <xs:extension base="xs:unsignedInt">
                                      <xs:attributeGroup ref="TimeSpan"/>
                                    </xs:extension>
                                  </xs:simpleContent>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="OvertimeWork" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                  <xs:simpleContent>
                                    <xs:extension base="xs:unsignedInt">
                                      <xs:attributeGroup ref="TimeSpan"/>
                                    </xs:extension>
                                  </xs:simpleContent>
                                </xs:complexType>
                              </xs:element>
                            </xs:choice>
                            <xs:element name="StatusGuid" type="GUID" minOccurs="0"/>
                            <xs:element name="Status" type="xs:string" minOccurs="0"/>
                          </xs:choice>
                        </xs:complexType>
                      </xs:element>
                    </xs:choice>
                  </xs:sequence>
                  <xs:attribute name="ID" type="GUID" use="required"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="ID" type="GUID" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="TimeSpan">
    <xs:attribute name="Start" type="xs:dateTime" use="required"/>
    <xs:attribute name="End" type="xs:dateTime" use="required"/>
  </xs:attributeGroup>
  <xs:simpleType name="GUID">
    <xs:restriction base="xs:string">
      <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
      <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

See Also

Concepts

SetAssignmentWorkData Elements