<?xml version="1.0" encoding="UTF-8"?>
    <!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, 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 xml@openapplications.org.
        
        XML Schema 
        
    -->
    
    <!--
        © Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
        word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
        Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
        are the property of their respective owners.
        
    -->
    
    <!--    *****     Update Log     *****
        
        Date          By      Note
        01 Sep 2011   PO      Added new noun based upon Shipment.
        *****     Update End     *****
        
    -->
<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/System/Components.xsd"/>

    <xsd:element name="Alert" type="AlertType"/>

    <xsd:complexType name="AlertType">
        <xsd:sequence>
            <xsd:element ref="DocumentID" minOccurs="0"/>
            <xsd:element ref="CreationDateTime" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> DateTime stamp when the Task was created.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="LastModificationDateTime" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> DateTime stamp when the Task was modified.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Status" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> Status of the task. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="EscalationLevel" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> If >0 then Task is escalated. The number determines the
                        number of levels in the Organizational Hierarchy it currently is escalated
                        to. Default:0 </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="MaxEscalationLevel" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> If >0 then the number determines the number of levels in the
                        Organizational Hierarchy it can at maximum be escalated to. Default:0, no
                        escalation possible. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> The content of the summary line of the Task. Not used in
                        Process with actionCode="Modified". The message content can contain
                        references to parameters by surrounding the Parameter-Name between "[]". If
                        the Parameter is not available the placeholder will be shown as is.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Note" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> Notes from people that did something with the Task.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="SourceCode" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> Who created the Task. Possible values of sourceType:
                        WORKFLOW, BOD. In case of WORKFLOW it will contain the Workflow ID. In case
                        of BOD the logical ID of the application instance that sent the ProcessTask,
                        actionCode="Add". </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DetailGroup" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of parameters. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="AssignedUser" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> The User ID of the user that executed the Task. This is
                        eventually a reference tot he SecurityUser noun which is not currently
                        implemented.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DistributionEntity" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of User and/or UserGroups to whom the Task must be
                        distributed.. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DistributionUser" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of Users to whom the Task has been distributed.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="DetailGroupType">
        <xsd:sequence>
            <xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of References to Business Documents.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="TreeNode" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of trees of properties and sub-trees.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="TreeNodeType">
        <xsd:sequence>
            <xsd:element ref="ID" minOccurs="0"/>
            <xsd:element ref="ParentID" minOccurs="0"/>
            <xsd:element ref="NodeName" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> This is the unique identification of a tree node.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Property" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> A list of properties. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>

    </xsd:complexType>

    <xsd:element name="TreeNode" type="TreeNodeType"/>
    <xsd:element name="DetailGroup" type="DetailGroupType"/>
    <xsd:element name="ParentID" type="IdentifierType"/>
</xsd:schema>
