<?xml version="1.0" encoding="UTF-8" standalone="no"?><!--
  ~ Copyright (c) 2010-2014 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  --><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/report/extension-3" elementFormDefault="qualified" targetNamespace="http://midpoint.evolveum.com/xml/ns/public/report/extension-3">

    <xsd:annotation>
        <xsd:documentation>
            Model object extension schema. Used mostly in task extensions.
        </xsd:documentation>
        <xsd:appinfo>
            <a:defaultPrefix>rext</a:defaultPrefix>
        </xsd:appinfo>
    </xsd:annotation>

    <xsd:import namespace="http://midpoint.evolveum.com/xml/ns/public/common/common-3" schemaLocation="../common/common-3.xsd"/>

    <xsd:complexType name="TaskExtensionType">
        <xsd:annotation>
            <xsd:appinfo>
                <a:extension ref="c:TaskType"/>
            </xsd:appinfo>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element minOccurs="0" ref="tns:reportParam"/>
            <xsd:element minOccurs="0" ref="tns:reportOutputOid"/>
            <xsd:element minOccurs="0" ref="tns:reportDataParam"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="reportParam" type="c:ReportParameterType">
        <xsd:annotation>
            <xsd:appinfo>
                <a:displayName>TaskExtension.reportParam</a:displayName>
                <a:minOccurs>0</a:minOccurs>
                <a:maxOccurs>1</a:maxOccurs>
            </xsd:appinfo>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="reportOutputOid" type="xsd:string">
        <xsd:annotation>
            <xsd:documentation>OID of created Report Output object. TODO consider replacing with object reference.</xsd:documentation>
            <xsd:appinfo>
                <a:displayName>TaskExtension.reportOutputOid</a:displayName>
                <a:minOccurs>0</a:minOccurs>
                <a:maxOccurs>1</a:maxOccurs>
                <a:removed>true</a:removed>
                <a:removedSince>4.8</a:removedSince>
            </xsd:appinfo>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="reportDataParam" type="c:ObjectReferenceType">
        <xsd:annotation>
            <xsd:documentation>OID of created Report Data object.</xsd:documentation>
            <xsd:appinfo>
                <a:displayName>TaskExtension.reportData</a:displayName>
                <a:minOccurs>0</a:minOccurs>
                <a:maxOccurs>1</a:maxOccurs>
                <a:objectReferenceTargetType>c:ReportDataType</a:objectReferenceTargetType>
            </xsd:appinfo>
        </xsd:annotation>
    </xsd:element>



</xsd:schema>