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

<archetype oid="00000000-0000-0000-0000-000000000520"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <name>Certification-related task</name>
    <archetypePolicy>
        <display>
            <label>
                <orig>Certification-related task</orig>
                <translation>
                    <key>CertificationRelatedTask.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Certification-related tasks</orig>
                <translation>
                    <key>CertificationRelatedTasks.title</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-certificate</cssClass>
                <color>green</color>
            </icon>
        </display>
        <!-- no configuration, specific configuration in children -->
    </archetypePolicy>
    <assignment id="3">
        <identifier>holderType</identifier>
        <assignmentRelation id="4">
            <holderType>TaskType</holderType>
        </assignmentRelation>
    </assignment>
    <inducement id="5">
        <identifier>nameMapping</identifier>
        <focusMappings>
            <mapping id="6">
                <strength>weak</strength>
                <expression>
                    <script>
                        <code>
                            return source.name
                        </code>
                    </script>
                </expression>
                <target>
                    <path>name</path>
                </target>
            </mapping>
        </focusMappings>
    </inducement>
</archetype>
