<?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
11 Apr 2010    PO      New ProjectMaster noun....in progress

        *****     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/Financial/Components.xsd"/>

        <xsd:element name="ProjectMaster" type="ProjectMasterType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">A set of
                                tasks with the following attributes: a singular purpose, a start and
                                end date, those that accumulate costs, and those that may have
                                materials and overhead. SYNONYMS: Job, Process Model, Program, Work
                                Breakdown Structure (WBS) element This is used to enable all
                                relevant sub-systems that submit transactions to the project
                                accounting application to maintain valid values for the key project
                                fields. The target applications for this update would include, but
                                not necessarily be limited to: Accounts Payable Accounts Receivable
                                Budget Order Management Purchasing Time and Labor Travel and
                        Expense</xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:complexType name="ProjectMasterType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">A set of
                                tasks with the following attributes: a singular purpose, a start and
                                end date, those that accumulate costs, and those that may have
                                materials and overhead. SYNONYMS: Job, Process Model, Program, Work
                                Breakdown Structure (WBS) element</xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="ProjectBaseType">
                                <xsd:sequence>
                                        <xsd:element ref="ProjectHierarchyType" minOccurs="0"/>
                                        <xsd:element ref="Status" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >Indicates the status of the
                                                  Project.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="FinancialStatus" minOccurs="0"/>
                                        <xsd:element ref="DocumentDateTime" minOccurs="0"/>
                                        <xsd:element ref="LastModificationDateTime" minOccurs="0"/>
                                        <xsd:element ref="AuthorizationID" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="TotalCostAmount" minOccurs="0"/>
                                        <xsd:element ref="GLEntityID" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >Is the Source General Ledger
                                                  recogized entity that is responsible
                                                  for paying for the
                                                  Project.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ProjectActivity" minOccurs="0"
                                                maxOccurs="unbounded">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >The specific business processes or
                                                  tasks within a project. For example,
                                                  billing, receiving or preparing
                                                  purchase orders</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:group ref="ReferencesGroup" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                        <xsd:element ref="ParentProject" minOccurs="0"/>
                                        <xsd:element ref="ContractType" minOccurs="0"/>
                                        <xsd:element ref="InvoiceType" minOccurs="0"/>
                                        <xsd:element ref="HoldBackPercent" minOccurs="0"/>
                                        <xsd:element ref="CostOfGoodsMethod" minOccurs="0"/>
                                        <xsd:element ref="RevenueRecognitionMethod" minOccurs="0"/>
                                        <xsd:element ref="ProjectPlan" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="CustomerContractDetail" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="BaselineID" minOccurs="0"/>
                                        <xsd:element ref="BaselineStatus" minOccurs="0"/>
                                        <xsd:element ref="BaselineApprovalDate" minOccurs="0"/>
                                        <xsd:element ref="BaselineDerivedFrom" minOccurs="0"/>
                                        <xsd:element ref="BaselineCreationDate" minOccurs="0"/>
                                        <xsd:element ref="BaselineLastUpdateDate" minOccurs="0"/>
                                        <xsd:element ref="BaselineDetail" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="ExtensionID" minOccurs="0" maxOccurs="unbounded"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:complexType name="ProjectActivityBaseType">
                <xsd:complexContent>
                        <xsd:extension base="ProjectBaseType">
                                <xsd:sequence>
                                        <xsd:element ref="Status" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:complexType name="ProjectActivityType">
                <xsd:complexContent>
                        <xsd:extension base="ProjectActivityBaseType">
                                <xsd:sequence>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                        <xsd:element ref="ParentActivityID" minOccurs="0"/>
                                        <xsd:element ref="PredecessorActivity" minOccurs="0" maxOccurs="unbounded"/>              
                                        <xsd:element ref="ProdecessorCostType" minOccurs="0"/>
                                        <xsd:element ref="SuccessorCostType" minOccurs="0"/>
                                        <xsd:element ref="BudgetLineNumber" minOccurs="0"/>
                                        <xsd:element ref="BudgetStatus" minOccurs="0">
                                                <xsd:annotation>
                                                        <xsd:documentation>Budget Status is for internal processing and for totaling 
                                                                budget values for project reporting. If free the budget is not in project 
                                                                totals. If it is actual then it would be in project budget totals.  
                                                                Final status tracks that no user can make changes to budgeted values 
                                                                without an adjustment. 
                                                        </xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="WorkStatus" minOccurs="0"/>
                                        <xsd:element ref="SuccessorBudgetLineNumber" minOccurs="0"/>
                                        <xsd:element ref="MilestoneIndicator" minOccurs="0"/>
                                        <xsd:element ref="MilestoneItemID" minOccurs="0"/>
                                        <xsd:element ref="MilestoneLinkedActivityID" minOccurs="0"/>
                                        <xsd:element ref="EarnedValueMethodID" minOccurs="0"/>
                                        <xsd:element ref="TopActivityIndicator" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:element name="ProjectActivity" type="ProjectActivityType"/>
        
        <xsd:complexType name="CustomerContractDetailType">
                <xsd:sequence>
                        <xsd:element ref="CustomerParty" minOccurs="0"/>
                        <xsd:element ref="BillToParty" minOccurs="0"/>
                        <xsd:element ref="PayFromParty" minOccurs="0"/>
                        <xsd:element ref="PaymentTerm" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element ref="ContractAmount" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element ref="ContractBaseAmount" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="CustomerContractDetail" type="CustomerContractDetailType"/>

        <xsd:complexType name="BaselineDetailType">
                <xsd:sequence>
                        <xsd:element ref="ActivityID" minOccurs="0"/>
                        <xsd:element ref="Description" minOccurs="0"/>
                        <xsd:element ref="ActivityStartDate" minOccurs="0"/>
                        <xsd:element ref="ActivityFinishDate" minOccurs="0"/>
                        <xsd:element ref="ParentActivityID" minOccurs="0"/>
                        <xsd:element ref="ParentActivityDescription" minOccurs="0"/>
                        <xsd:element ref="ActivityType" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="BaselineDetail" type="BaselineDetailType"/>
        

        <!-- New elements and types that will be left in noun for 2.3.3 and moved to components and Fields for 2.4. -->

        <xsd:complexType name="ProjectPlanType">
                <xsd:sequence>
                        <xsd:element ref="ID" minOccurs="0"/>
                        <xsd:element ref="ProjectActivity" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        
        <xsd:complexType name="PredecessorActivityType">
                <xsd:sequence>
                        <xsd:element ref="ID" minOccurs="0"/>
                        <xsd:element ref="RelationshipType" minOccurs="0"/>
                        <xsd:element ref="LagIndicator" minOccurs="0"/>
                        <xsd:element ref="BudgetLineNumber" minOccurs="0"/>
                        <xsd:element ref="LeadTimeDuration" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>Lead time is the overlap between activities that have a dependency. 
                                                You enter lead time as a negative value. Example, if an activity can start 
                                                when its predecessor is half completed, you can specify a finish-to-start 
                                                dependency with a lead time of 50 per cent for the successor task.
                                        </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="LeadUnitCode" minOccurs="0"/>
                        <xsd:element ref="LagTimeDuration" minOccurs="0"/>
                        <xsd:element ref="LagUnitCode" minOccurs="0"/>
                        <xsd:element ref="ResourceTypeCode" minOccurs="0"/>
                        
                </xsd:sequence>
        </xsd:complexType>
        
        <xsd:element name="PredecessorActivity" type="PredecessorActivityType"/>
        
        <xsd:element name="ProjectHierarchyType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation>Code includes single, main or sub project.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="ContractAmount" type="AmountType"/>
        <xsd:element name="ContractBaseAmount" type="AmountType"/>
        
        <xsd:element name="ContractType" type="CodeType"/>
        <xsd:element name="CostOfGoodsMethod" type="CodeType"/>
        <xsd:element name="InvoiceType" type="CodeType"/>
        <xsd:element name="RelationshipType" type="CodeType"/>
        <xsd:element name="RevenueRecognitionMethod" type="CodeType"/>
        <xsd:element name="LagIndicator" type="IndicatorType"/>
        <xsd:element name="HoldBackPercent" type="NumericType"/>
        <xsd:element name="FinancialStatus" type="StatusType"/>
        <xsd:element name="WorkStatus" type="StatusType">
                <xsd:annotation>
                        <xsd:documentation>Free, no costs can be done on that. On Hold, work is 
                                authorized and costs could have been charged but now no costs can 
                                be charged to it. Released, costs can be charged to this activity. 
                                Finished, no new costs can be charged but existing transactions can be processed. 
                                Closed, no costs can be charged to this. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="ProjectPlan" type="ProjectPlanType"/>
        <xsd:element name="ParentProject" type="ProjectReferenceType"/>
        <xsd:element name="ParentActivityID" type="IdentifierType"/>
        <xsd:element name="BudgetLineNumber" type="IdentifierType">
                <xsd:annotation>
                        <xsd:documentation>Refers to the ProjectBudget's LineNumber. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="SuccessorBudgetLineNumber" type="IdentifierType"/>
        <xsd:element name="MilestoneItemID" type="ItemIDType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The manufactured item in the 
                                projects is linked to the milestone. The link makes it possible to detect the completion 
                                of the manufactured item (in the bill of material) in your project scheduling.
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="MilestoneLinkedActivityID" type="ItemIDType"/>
        <xsd:element name="LeadUnitCode" type="UnitCodeContentType">
                <xsd:annotation>
                        <xsd:documentation>Unit of measure associated with the lead time.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="LagTimeDuration" type="DurationMeasureType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Lag time is a delay between activities 
                                that have a dependency. You enter lag time as a positive value. Example if you need a two-day 
                                delay between the finish of one activity and the start of another, you can establish a 
                                finish-to-start dependency and specify the lag time as two days.
                        </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="LagUnitCode" type="UnitCodeContentType">
                <xsd:annotation>
                        <xsd:documentation>Unit of measure associated with the lag time.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:element name="ProdecessorCostType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation>Includes Item (= Material), Labor, Equipment, Subcontracting and Sundry cost.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="SuccessorCostType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation>Includes Item (= Material), Labor, Equipment, Subcontracting and Sundry cost.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="EarnedValueMethodID" type="IdentifierType"/>

        <xsd:element name="BaselineID" type="IdentifierType"/>
        <xsd:element name="BaselineStatus" type="StatusType"/>
        <xsd:element name="BaselineApprovalDate" type="DateType"/>
        <xsd:element name="BaselineDerivedFrom" type="NormalizedStringType"/>
        <xsd:element name="BaselineCreationDate" type="DateType"/>
        <xsd:element name="BaselineLastUpdateDate" type="DateType"/>
        <xsd:element name="ActivityStartDate" type="DateType"/>
        <xsd:element name="ActivityFinishDate" type="DateType"/>
        <xsd:element name="ParentActivityDescription" type="DescriptionType"/>
        <xsd:element name="ActivityType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation>values work package, wbs element, project cost account, planning package, milestone.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="ExtensionID" type="IdentifierType"/>
        <xsd:element name="MilestoneIndicator" type="IndicatorType"/>
        <xsd:element name="TopActivityIndicator" type="IndicatorType"/>
        
        

</xsd:schema>
