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

<archetype oid="00000000-0000-0000-0000-000000000532"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <name>Provisioning propagation task (one resource)</name>
    <archetypeType>auxiliary</archetypeType>
    <archetypePolicy>
        <display>
            <label>
                <orig>Provisioning propagation task (one resource)</orig>
                <translation>
                    <key>ProvisioningPropagationTask.oneResource.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Provisioning propagation task (one resource)</orig>
                <translation>
                    <key>TaskHandlerSelector.provisioning.task.propagation.handler</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-save</cssClass>
                <color>green</color>
            </icon>
        </display>
        <adminGuiConfiguration>
            <objectDetails>
                <type>TaskType</type>
                <panel id="1">
                    <identifier>activity</identifier>
                    <panel id="2">
                        <identifier>work</identifier>
                        <container id="3">
                            <identifier>work-propagation</identifier>
                            <path>activity/work/propagation</path>
                        </container>
                    </panel>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="4">
        <identifier>holderType</identifier>
        <assignmentRelation id="5">
            <holderType>TaskType</holderType>
        </assignmentRelation>
    </assignment>
    <inducement id="6">
        <identifier>nameMapping</identifier>
        <focusMappings>
            <mapping id="7">
                <strength>weak</strength>
                <expression>
                    <script>
                        <code>
                            return source.name
                        </code>
                    </script>
                </expression>
                <target>
                    <path>name</path>
                </target>
            </mapping>
        </focusMappings>
    </inducement>
</archetype>
