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

<archetype oid="00000000-0000-0000-0000-000000000342"
        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>Approval case</name>
    <description>
        Archetype for approval cases, e.g. role assignment approval.
    </description>
    <archetypePolicy>
        <display>
            <label>
                <orig>Approval case</orig>
                <translation>
                    <key>approvalCase.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Approval cases</orig>
                <translation>
                    <key>approvalCase.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fe fe-approver-object</cssClass>
                <color>#001f3f</color>
            </icon>
        </display>
        <adminGuiConfiguration>
            <objectDetails>
                <panel id="3">
                    <identifier>caseWorkItems</identifier>
                    <display>
                        <label>
                            <orig>Workitems</orig>
                            <translation>
                                <key>Workitems.panel.title</key>
                            </translation>
                        </label>
                        <icon>
                            <cssClass>fa fa-circle-o</cssClass>
                        </icon>
                    </display>
                    <panelType>caseWorkItems</panelType>
                    <type>c:CaseType</type>
                </panel>
                <panel id="4">
                    <identifier>approvalCase</identifier>
                    <display>
                        <label>
                            <orig>Approvals</orig>
                            <translation>
                                <key>Approvals.case.panel</key>
                            </translation>
                        </label>
                        <icon>
                            <cssClass>fa fa-circle-o</cssClass>
                        </icon>
                    </display>
                    <displayOrder>1</displayOrder>
                    <panelType>approvalCase</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>
