<?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-2332 - Tree Parameter for PulseTask
    23rd july 213 Ajay BOD 2453:DataType made optional in component folder 
    *****     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="PulseTask" type="PulseTaskType"/>

    <xsd:complexType name="PulseTaskType">
        <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:element ref="Priority" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> Priority of the Task. Possible values: HIGH, MEDIUM, LOW. Default: MEDIUM.
                    </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="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">
                <!-- BOD-2332 -->
                <xsd:annotation>
                    <xsd:documentation>To define any tree structure as a parameter </xsd:documentation>
                </xsd:annotation>
            </xsd:element>

            <xsd:element ref="ActionParameter" minOccurs="0"/>
            <xsd:element ref="AssignedPerson" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation> The person ID of the user that executed the Task. </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element ref="DistributionPerson" 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:sequence>
    </xsd:complexType>

</xsd:schema>
