<?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
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
 
        *****     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="../Common/Components.xsd"/>

    <xsd:complexType name="ConsiderationsType">

        <xsd:annotation>
            <xsd:documentation> Describes any special considerations for the environment. For
                example, Safety Equipment and Dress Code. </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="General" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="Physical" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="SafetyEquipment" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="DressCode" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="DressCodeType">
        <xsd:annotation>
            <xsd:documentation>Defines any dress code requirements for the environment. For example,
                tie, suit, business casual.</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence> </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="GeneralType">
        <xsd:annotation>
            <xsd:documentation>Additional information on the work environment, which may be useful
                to both the Staffing Supplier and Human Resource. For example, lunch facility, smoke
                free.</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence> </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="OrganizationalUnitType">
        <xsd:annotation>
            <xsd:documentation> Contains information about a sub-entity or entities within an
                organization that have no unique legal identification or designation.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="OrganizationalUnitName" minOccurs="0"/>
            <xsd:element ref="OrganizationalUnitId" minOccurs="0"/>
            <xsd:group ref="FreeFormTextGroup"/>
            <xsd:element ref="IndustryCode" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="AccountingCode" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="WorkSite" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="RelatedOrganizationalUnit" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="PersonMember" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="PersonMemberType">
        <xsd:annotation>
            <xsd:documentation> Contains information about members of a particular organizational
                unit in the context of the transaction. </xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>
            <xsd:extension base="PersonType">
                <xsd:sequence>
                    <xsd:element ref="PersonRole" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="PersonRoleType">
        <xsd:annotation>
            <xsd:documentation> Describes the role of the person within the context of that
                particular organizational unit. </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="Leader" minOccurs="0"/>
            <xsd:element ref="RoleId" minOccurs="0"/>
            <xsd:element ref="RoleName" minOccurs="0"/>
            <xsd:element ref="RoleDescription" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="PhysicalType">
        <xsd:annotation>
            <xsd:documentation>Description of physical aspects of the environment, which may
                influence the Staffing Supplier or the Human Resource when the position or
                assignment is offered. For example, wheelchair accessible, no elevator, climate
                control, dust level, bio-hazardous material. </xsd:documentation>
        </xsd:annotation>
    </xsd:complexType>

    <xsd:complexType name="RelatedOrganizationalUnitType">
        <xsd:annotation>
            <xsd:documentation xml:lang="en">Allows other organizational units to be hierarchically
                associated with the organizational unit considered primary for the purpose of the
                transaction. </xsd:documentation>
        </xsd:annotation>
        <xsd:complexContent>
            <xsd:extension base="OrganizationalUnitType">
                <xsd:attribute name="relationship" type="NormalizedStringType" use="optional">
                    <xsd:annotation>
                        <xsd:documentation>Describes the nature of the relationship or connection
                            between two elements or entities. [BusinessRule(s): Context 1: Between
                            two organizations (parent company, subsidiary), Context 2: Between
                            organizational units (parent, child, sibling) Context 3: Between a
                            contact person and the context in which they are listed (Supplier
                            contact: agent, Organization contact ] [Example(s): Subsidiary, Parent
                            Company ] </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="natureOfRelationship" type="NormalizedStringType"
                    use="optional">
                    <xsd:annotation>
                        <xsd:documentation>Describes the nature of the relationship between the
                            primary organizational unit and the related one. [Example(s): Reporting,
                            Fiduciary, Legal ] </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="SafetyEquipmentType"> </xsd:complexType>

    <xsd:complexType name="WorkSiteEnvironmentType">
        <xsd:annotation>
            <xsd:documentation> Contains common Work Site Environment information, including
                description, physical considerations, dress code, and safety equipment.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="EnvironmentName" minOccurs="0"/>
            <xsd:element ref="EnvironmentID" minOccurs="0"/>
            <xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
            <xsd:group ref="FreeFormTextGroup"/>
            <xsd:element ref="Considerations" minOccurs="0"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="WorkSiteType">
        <xsd:annotation>
            <xsd:documentation>Contains common Work Site information to be used within other HR-XML
                Schemas</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element ref="WorkSiteID" minOccurs="0"/>
            <xsd:element ref="WorkSiteName" minOccurs="0"/>
            <xsd:group ref="FreeFormTextGroup"/>
            <xsd:element ref="Location" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="WorkSiteEnvironment" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="UserArea" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="AccountingCode" type="CodeType"/>
    <xsd:element name="Considerations" type="ConsiderationsType"/>
    <xsd:element name="DressCode" type="DressCodeType"/>
    <xsd:element name="EnvironmentName" type="NameType">
        <xsd:annotation>
            <xsd:documentation> Contains a name or brief description of the worksite environment.
                For example, Laboratory, Warehouse, Fieldwork. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="EnvironmentID" type="IdentifierType">
        <xsd:annotation>
            <xsd:documentation> Unique Id to define the worksite environment. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="General" type="GeneralType">
        <xsd:annotation>
            <xsd:documentation> Additional information on the work environment, which may be useful
                to both the Staffing Supplier and Human Resource. For example, lunch facility, smoke
                free. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="IndustryCode" type="CodeType"/>
    <xsd:element name="Leader" type="IndicatorType">
        <xsd:annotation>
            <xsd:documentation>Indicates whether the person member's role is one of leadership, in
                the context of the organizational unit. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="OrganizationalUnitId" type="IdentifierType"/>
    <xsd:element name="OrganizationalUnitName" type="NameType"/>
    <xsd:element name="PersonMember" type="PersonMemberType"/>
    <xsd:element name="PersonRole" type="PersonRoleType"/>
    <xsd:element name="Physical" type="PhysicalType">
        <xsd:annotation>
            <xsd:documentation>Description of physical aspects of the environment, which may
                influence the Staffing Supplier or the Human Resource when the position or
                assignment is offered. For example, wheelchair accessible, no elevator, climate
                control, dust level, bio-hazardous material. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="RelatedOrganizationalUnit" type="RelatedOrganizationalUnitType"/>
    <xsd:element name="RoleDescription" type="TextType">
        <xsd:annotation>
            <xsd:documentation>Describes the contextual information relating to a specific element.
                [Example(s): Description defining an Organization's mission or purpose. Description
                of stock plan. Description of payment terms and conditions. ] </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="RoleId" type="IdentifierType">
        <xsd:annotation>
            <xsd:documentation>A unique identifier for the person member's role.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="RoleName" type="NameType">
        <xsd:annotation>
            <xsd:documentation>Descriptive name for the role of the person member.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="SafetyEquipment" type="SafetyEquipmentType">
        <xsd:annotation>
            <xsd:documentation>Defines any safety equipment required for the work site environment.
                For example, hard Hat, safety glasses, steel-toed shoes. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="WorkSite" type="WorkSiteType"/>
    <xsd:element name="WorkSiteEnvironment" type="WorkSiteEnvironmentType"/>
    <xsd:element name="WorkSiteID" type="IdentifierType">
        <xsd:annotation>
            <xsd:documentation>Unique Id to define the worksite </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="WorkSiteName" type="NameType">
        <xsd:annotation>
            <xsd:documentation>Contains a name or brief description of the worksite. For example,
                Office, Warehouse, Fieldwork </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

</xsd:schema>
