<?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
   31 May 2013   LA      BOD-2331 - Tree Parameter for PulseTask; Moved TreeNodeType to components
    *****     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="PulseAlert" type="PulseAlertType"/>

    <xsd:complexType name="PulseAlertType">
        <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="LastModificationPerson" minOccurs="0"/>
        	<xsd:element ref="DocumentReference" minOccurs="0"/>
            <xsd:element ref="Status" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> Status of the document. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="EscalationLevel" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> If &gt;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:group ref="FreeFormTextGroup"/>
            <xsd:element ref="Source" 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="AlertDetail" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of parameters. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="AssignedPerson" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> The Person ID of the Person that executed the Task. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DistributionPerson" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of Persons and/or Person Groups to whom the Task must
                        be distributed.. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="AlertDetailType">
        <xsd:sequence>
            <xsd:element ref="PulseDocumentReference" 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:attribute name="sequence" type="PositiveIntegerNumericType" use="optional"/>
    </xsd:complexType>

    

    
    <xsd:element name="AlertDetail" type="AlertDetailType"/>
   

</xsd:schema>
