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

<archetype oid="00000000-0000-0000-0000-000000000345"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <name>Correlation case</name>
    <description>
        Archetype for correlation cases.
    </description>
    <archetypePolicy>
        <display>
            <label>
                <orig>Correlation case</orig>
                <translation>
                    <key>correlationCase.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Correlation cases</orig>
                <translation>
                    <key>correlationCase.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fe fe-approver-object</cssClass> <!-- TODO -->
            </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</cssClass>
                        </icon>
                    </display>
                    <displayOrder>20</displayOrder>
                    <panelType>caseWorkItems</panelType>
                    <type>c:CaseType</type>
                </panel>
                <panel id="4">
                    <identifier>correlationContext</identifier>
                    <display>
                        <label>
                            <orig>Correlation</orig>
                            <translation>
                                <key>correlation.panel.label</key>
                            </translation>
                        </label>
                        <icon>
                            <cssClass>fa fa-circle</cssClass>
                        </icon>
                    </display>
                    <displayOrder>30</displayOrder>
                    <panelType>correlationContext</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>
