<?xml version="1.0" encoding="UTF-8"?>
<!--




   Schema agency: 	Open Applications Group 


   OAGIS® Revision:    9_4_1  
   Date:               30 June 2009 
   Copyright 1997-2009, All Rights Reserved 

  	
   Copyright (C) Open Applications Group (1997-2009). All Rights Reserved.
  
  
   This is an OAGIS® BOD XML Schema (XSD) Definition.

   License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.

   For support, more information, or to report implementation bugs, please contact the Open Applications Group at oagis@openapplications.org.
    
   XML Schema 
     
    Name: /OAGi-BPI-Platform/org_openapplications_oagis/9_4_1/Developer/BODs/ProcessServiceOrder.xsd
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">
    
    <xsd:include schemaLocation="../Components/Financial/Components.xsd"/>
    
    <xsd:element name="ServiceOrder" type="ServiceOrderType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/oagis/9">A Service Order is an order for a machine, building, tooling or fixed asset to be repaired under warranty or a service agreement.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="ServiceOrderType">
        <xsd:sequence>
            <xsd:element ref="ServiceOrderHeader" minOccurs="0"/>
            <xsd:element ref="ServiceOrderLine" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="NormalizedStringType"/>
    </xsd:complexType>
    <xsd:element name="ServiceOrderHeader" type="ServiceOrderHeaderType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/oagis/9">Information that generally describes the service order</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="ServiceOrderHeaderType">
        <xsd:complexContent>
            <xsd:extension base="HeaderType">
                <xsd:sequence>
                    <xsd:element ref="PriorityCode" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Identifies the priority of the ServiceOrder</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="Status" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="CustomerParty" minOccurs="0"/>
                    <xsd:element ref="ShipToParty" minOccurs="0"/>
                    <xsd:element ref="ConfiguredAsset" minOccurs="0"/>
                    <xsd:element ref="Classification" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="Event" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ParentServiceOrderID" minOccurs="0" maxOccurs="unbounded">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the service order that proceeded this order or from which this service order originated after further investigation or work was performed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ReportedDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Identifies when the work to be done in this work order was reported</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="RespondByDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the date by which a response is expected for this service order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ChangeDateTime" minOccurs="0" maxOccurs="unbounded">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Timestamp in which the service order was changed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="FailureDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the timestamp when the machine failed or broke down such that it was no longer useable.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="PlannedTimePeriod" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the Planned TimePeriod in which the service order is planned to be performed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ScheduledTimePeriod" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the TimePeriod in which the work is Scheduled to be performed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualTimePeriod" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the TimePeriod in which the work was actually done. There maybe multiple occurances of this compound if part of the work was completed and the remainder performed at another time. This may happen when a part needs to be ordered.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="BudgetedAmount" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the monetary amount budgeted for the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="EstimatedAmount" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the EstimatedAmount of the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualAmount" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the ActualAmount of the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="EstimatedDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is an estimate as to how long it will take to complete the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the total time spent working on the ServiceOrder. Is all of the sum of all the occurances of the ActualTimePeriod.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="RemainingDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Time needed to complete the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ItemInstance" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the status of the machine.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="Facility" minOccurs="0"/>
                    <xsd:element ref="JobPlanID" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is a identifier that describes the specific type of job sequence being performed/requested.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="PreventiveMaintenanceID" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Describes the specific type of preventive maintenance sequence being performed/requested.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="CalendarID" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Identifies the service calendar used when scheduling this service order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="SplitOperationsIndicator" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates whether an operation in a service order have to be performed all at once or can be split into non-contiguous work segments.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="PlannerID" minOccurs="0"/>
                    <xsd:element ref="SupervisorID" minOccurs="0"/>
                    <xsd:element ref="RequesterID" minOccurs="0"/>
                    <xsd:element ref="ProjectReference" minOccurs="0"/>
                    <xsd:element ref="Distribution" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="EstimatedResourceRequirements" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This identifies resources that are required to perform the service operation. Resource Requirements can be specified for the entire service order or for each operation within the order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualResources" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This identifies the actual usage of resources against the requirements estimated for the work order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="Safety" minOccurs="0"/>
                    <xsd:element ref="Failure" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="EstimatedResourceRequirements" type="AllocatedResourcesType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/platform/1">This identifies resources that are required to perform the service operation. Resource Requirements can be specified for the entire service order or for each operation within the order</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="AllocatedResourcesType">
        <xsd:sequence>
            <xsd:element ref="Allocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="InventoryAllocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="LabourAllocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="MachineAllocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OperationAllocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ToolAllocation" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="InventoryAllocation" type="InventoryAllocationType"/>
    <xsd:complexType name="InventoryAllocationType">
        <xsd:sequence>
            <xsd:annotation>
                <xsd:documentation source="http://www.openapplications.org/platform/1">Deprecate Item in favor of ItemInstance in InventoryActual and InventoryAllocation.
                    
                    Item is intended to be the Item concept characteristics of the Item and not intended to represent the Item Instances. ItemInstance was created to be the instances of the Items. </xsd:documentation>
            </xsd:annotation>
            <xsd:element ref="Item" minOccurs="0"/>
            <xsd:element ref="ItemInstance" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="MachineAllocation" type="MachineAllocationType"/>
    <xsd:complexType name="MachineAllocationType">
        <xsd:sequence>
            <xsd:element ref="ItemInstance" minOccurs="0"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OperationAllocation" type="OperationAllocationType"/>
    <xsd:complexType name="OperationAllocationType">
        <xsd:sequence>
            <xsd:element ref="OperationReference" minOccurs="0"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ToolAllocation" type="ToolAllocationType"/>
    <xsd:complexType name="ToolAllocationType">
        <xsd:sequence>
            <xsd:element ref="Tool" minOccurs="0"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Tool" type="ToolType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/platform/1">Identifies the tool needed for a given task.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="ToolType">
        <xsd:complexContent>
            <xsd:extension base="ToolBaseType">
                <xsd:sequence>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="ToolBaseType" abstract="true">
        <xsd:complexContent>
            <xsd:extension base="ResourceBaseType">
                <xsd:sequence>
                    <xsd:annotation>
                        <xsd:documentation source="http://www.openapplications.org/platform/1">Tool/ID is depricated Tool/ToolID should be used to communicate the Identifier of the Tool.</xsd:documentation>
                    </xsd:annotation>
                    <xsd:element ref="ToolID" minOccurs="0"/>
                    <xsd:element ref="SerialNumber" minOccurs="0"/>
                    <xsd:element ref="LotSerial" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="ToolID" type="ItemIDType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/platform/1">Identifies the Tool.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="ActualResources" type="ActualResources"/>
    <xsd:complexType name="ActualResources">
        <xsd:sequence>
            <xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Actual" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="InventoryActual" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="LabourActual" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ItemActual" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OperationActual" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ToolActual" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Actual" type="ActualType"/>
    <xsd:complexType name="ActualType">
        <xsd:sequence>
            <xsd:element ref="Resource" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:group name="ActualResourceGroup">
        <xsd:sequence>
            <xsd:element ref="UnitCost" minOccurs="0"/>
            <xsd:element ref="Quantity" minOccurs="0"/>
            <xsd:element ref="TotalCostAmount" minOccurs="0"/>
            <xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:element name="InventoryActual" type="InventoryActualType"/>
    <xsd:complexType name="InventoryActualType">
        <xsd:sequence>
            <xsd:annotation>
                <xsd:documentation source="http://www.openapplications.org/platform/1">Deprecate Item in favor of ItemInstance in InventoryActual and InventoryAllocation.
                    
                    Item is intended to be the Item concept characteristics of the Item and not intended to represent the Item Instances. ItemInstance was created to be the instances of the Items. </xsd:documentation>
            </xsd:annotation>
            <xsd:element ref="Item" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="ItemInstance" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="LabourActual" type="LabourActualType"/>
    <xsd:complexType name="LabourActualType">
        <xsd:sequence>
            <xsd:element ref="Labour" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="BreakTimeDuration" minOccurs="0"/>
            <xsd:element ref="WorkTimePeriod" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ItemActual" type="ItemActualType"/>
    <xsd:complexType name="ItemActualType">
        <xsd:sequence>
            <xsd:element ref="ItemInstance" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="DownTimeDuration" minOccurs="0"/>
            <xsd:element ref="DownTimePeriod" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="DownTimePeriod" type="TimePeriodType"/>
    <xsd:element name="OperationActual" type="OperationActualType"/>
    <xsd:complexType name="OperationActualType">
        <xsd:sequence>
            <xsd:element ref="OperationReference" minOccurs="0"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ToolActual" type="ToolActualType"/>
    <xsd:complexType name="ToolActualType">
        <xsd:sequence>
            <xsd:element ref="Tool" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:group ref="ActualResourceGroup" minOccurs="0"/>
            <xsd:element ref="DownTimeDuration" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="LabourAllocation" type="LabourAllocationType"/>
    <xsd:complexType name="LabourAllocationType">
        <xsd:sequence>
            <xsd:element ref="Labour" minOccurs="0"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Labour" type="LabourType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/platform/1">Identifies the Labour needed for a given task.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="LabourType">
        <xsd:complexContent>
            <xsd:extension base="ResourceBaseType">
                <xsd:sequence>
                    <xsd:group ref="EmployeeGroup" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:element name="Allocation" type="AllocationType"/>
    <xsd:complexType name="AllocationType">
        <xsd:sequence>
            <xsd:element ref="Resource" minOccurs="0"/>
            <xsd:group ref="ResourceAllocationGroup" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Resource" type="ResourceType"/>
    <xsd:complexType name="ResourceType">
        <xsd:complexContent>
            <xsd:extension base="ResourceBaseType">
                <xsd:sequence>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
                <xsd:attribute name="type" type="ResourceTypeCodeContentType"/>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:group name="ResourceAllocationGroup">
        <xsd:sequence>
            <xsd:element ref="UnitCost" minOccurs="0"/>
            <xsd:element ref="RequiredQuantity" minOccurs="0"/>
            <xsd:element ref="RequiredDuration" minOccurs="0"/>
            <xsd:element ref="TotalCostAmount" minOccurs="0"/>
            <xsd:group ref="FreeFormTextGroup" minOccurs="0"/>
        </xsd:sequence>
    </xsd:group>

    <xsd:element name="Event" type="EventType">
        <xsd:annotation>
            <xsd:documentation source="http://www.openapplications.org/oagis/9"/>
        </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="EventType">
        <xsd:sequence>
            <xsd:element name="StartDateTime" type="DateTimeType" minOccurs="0"/>
            <xsd:element ref="Duration" minOccurs="0"/>
            <xsd:element name="EndDateTime" type="DateTimeType" minOccurs="0"/>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="CodeContentType"/>
    </xsd:complexType>
    <xsd:simpleType name="CodeContentType">
        <xsd:restriction base="NormalizedStringType"/>
    </xsd:simpleType>
    <xsd:element name="ServiceOrderLine" type="ServiceOrderLineType"/>
    <xsd:complexType name="ServiceOrderLineType">
        <xsd:complexContent>
            <xsd:extension base="LineType">
                <xsd:sequence>
                    <xsd:element ref="ShipToParty" minOccurs="0"/>
                    <xsd:element ref="ConfiguredAsset" minOccurs="0"/>
                    <xsd:element ref="OperationID" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This is the identifier of the Service Operation</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the total time spent working on the ServiceOrder. Is all of the sum of all the occurances of the ActualTimePeriod.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="RemainingDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Time needed to complete the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="EstimatedDuration" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is an estimate as to how long it will take to complete the ServiceOrder.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ReportedDateTime" minOccurs="0"/>
                    <xsd:element ref="CompletionDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the timestamp that indicates when the ServiceOrder was completed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="MeterRecording" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="Safety" minOccurs="0"/>
                    <xsd:element ref="Failure" minOccurs="0"/>
                    <xsd:element ref="Distribution" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="EstimatedResourceRequirements" minOccurs="0"/>
                    <xsd:element ref="ActualResources" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This identifies the actual usage of resources against the requirements estimated for the work order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ServiceOrderSubline" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="MeterRecording" type="MeterRecordingType"/>
    <xsd:complexType name="MeterRecordingType">
        <xsd:sequence>
            <xsd:element ref="MeterID" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation source="http://www.openapplications.org/oagis/9">Identifies the meter that was measured</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="RecordedMeasure" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the measurement value of the service operation.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="RecordingDateTime" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the timestamp in which the measurement was recorded.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="InspectorID" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="ServiceOrderSubline" type="ServiceOrderSublineType"/>
    <xsd:complexType name="ServiceOrderSublineType">
        <xsd:complexContent>
            <xsd:extension base="LineType">
                <xsd:sequence>
                    <xsd:element ref="ParentLineNumber" minOccurs="0"/>
                    <xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ReportedDateTime" minOccurs="0"/>
                    <xsd:element ref="CompletionDateTime" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">Is the timestamp that indicates when the ServiceOrder was completed.</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="ActualResources" minOccurs="0">
                        <xsd:annotation>
                            <xsd:documentation source="http://www.openapplications.org/oagis/9">This identifies the actual usage of resources against the requirements estimated for the work order</xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:schema>
