<?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.
    31 May 2013    LA    BOD-2333 - Tree Parameter for PulseNotification
    6 Jul 2016     LA    PulseDocumentReference added, BOD-2642
    30 Aug 2017    LA    ExpiryDateTime added, BOD-3334
    1 Feb 2018     LA    ExpiryDateTime definition moved to Syetem/Components.xsd BOD-3353
    *****     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="PulseNotification" type="PulseNotificationType"/>

    <xsd:complexType name="PulseNotificationType">
        <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="ExpiryDateTime" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Specifies that hat the notification will be automatically closed at this time. 
                        The end user will not see it anymore. Users are also not informed that 
                        notifications are about to expire
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="Status" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> Status of the document. </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="PulseDocumentReference" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Parameter" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of parameters. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref = "TreeParameter" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>To define any tree structure as a parameter </xsd:documentation>
                </xsd:annotation>
            </xsd:element>    <!--BOD-2333 TreeParameter for PulseNotification -->
            
            <xsd:element ref="AssignedPerson" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="DistributionPerson" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation> List of Persons  to whom the Task has been distributed.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DistributionGroup" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        List of distribution groups to which the task must be distributed
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>
