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

<archetype oid="00000000-0000-0000-0000-000000000341"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
        xmlns:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
    <name>Operation request</name>
    <description>
        Archetype for cases that describe operation requests, e.g. role assignment requests.
    </description>
    <archetypePolicy>
        <display>
            <label>
                <orig>Operation request</orig>
                <translation>
                    <key>operationRequest.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Operation requests</orig>
                <translation>
                    <key>operationRequest.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-play-circle</cssClass>
                <color>#001f3f</color>
            </icon>
        </display>
        <adminGuiConfiguration>
            <objectDetails>
                <panel id="3">
                    <identifier>childCases</identifier>
                    <display>
                        <label>
                            <orig>Child cases</orig>
                            <translation>
                                <key>ChildCases.panel.title</key>
                            </translation>
                        </label>
                        <icon>
                            <cssClass>fa fa-circle-o</cssClass>
                        </icon>
                    </display>
                    <panelType>childCases</panelType>
                    <type>c:CaseType</type>
                </panel>
                <panel id="4">
                    <identifier>operationRequestCase</identifier>
                    <display>
                        <label>
                            <orig>Operation request</orig>
                            <translation>
                                <key>OperationRequest.panel.title</key>
                            </translation>
                        </label>
                        <icon>
                            <cssClass>fa fa-circle-o</cssClass>
                        </icon>
                    </display>
                    <displayOrder>1</displayOrder>
                    <panelType>operationRequestCase</panelType>
                    <type>c:CaseType</type>
                    <default>true</default>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="1">
        <identifier>holderType</identifier>
        <assignmentRelation id="2">
            <holderType>CaseType</holderType>
        </assignmentRelation>
    </assignment>
</archetype>
