<!--
  ~ Copyright (c) 2020 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  -->

<archetype oid="00000000-0000-0000-0000-000000000507"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:rext="http://midpoint.evolveum.com/xml/ns/public/report/extension-3">
    <name>Report task</name>
    <description>Super archetype for all report archetypes</description>
    <archetypePolicy>
        <display>
            <label>
                <orig>Report task</orig>
                <translation>
                    <key>ReportTask.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Report tasks</orig>
                <translation>
                    <key>ReportTasks.title</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-chart-pie</cssClass>
                <color>green</color>
            </icon>
        </display>
        <itemConstraint id="1">
            <path>extension</path>
            <visibility>vacant</visibility>
        </itemConstraint>
        <itemConstraint id="2">
            <path>extension/rext:reportParam</path>
            <visibility>visible</visibility>
        </itemConstraint>
        <itemConstraint id="3">
            <path>extension/rext:reportDataParam</path>
            <visibility>visible</visibility>
        </itemConstraint>
        <adminGuiConfiguration>
            <objectDetails>
                <type>TaskType</type>
                <panel id="4">
                    <identifier>taskBasic</identifier>
                    <container id="5">
                        <identifier>report-options</identifier>
                        <display>
                            <label>ReportTask.reportOptions</label>
                        </display>
                        <item id="6">
                            <c:path>extension/rext:reportParam</c:path>
                        </item>
                        <item id="7">
                            <c:path>extension/rext:reportDataParam</c:path>
                        </item>
                    </container>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="8">
        <identifier>holderType</identifier>
        <assignmentRelation id="9">
            <holderType>TaskType</holderType>
        </assignmentRelation>
    </assignment>
</archetype>
