<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2010-2024 Evolveum and contributors
  ~
 ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oid="57208e97-ecc8-4541-8689-6a88069b3977" version="169">
    <name>Shadow Refresh Task</name>
    <description>This task will push pending changes and do shadow object maintenance. It will also remove dead shadows according to the dead shadow retention policy.</description>
    <assignment id="2">
        <targetRef oid="00000000-0000-0000-0000-000000000514" relation="org:default" type="c:ArchetypeType"/>
        <activation>
            <effectiveStatus>enabled</effectiveStatus>
        </activation>
    </assignment>
    <assignment id="1">
        <targetRef oid="00000000-0000-0000-0000-000000000528" relation="org:default" type="c:ArchetypeType"/>
        <activation>
            <effectiveStatus>enabled</effectiveStatus>
        </activation>
    </assignment>
    <archetypeRef oid="00000000-0000-0000-0000-000000000528" relation="org:default" type="c:ArchetypeType"/>
    <archetypeRef oid="00000000-0000-0000-0000-000000000514" relation="org:default" type="c:ArchetypeType"/>
    <roleMembershipRef oid="00000000-0000-0000-0000-000000000528" relation="org:default" type="c:ArchetypeType">
        <_metadata>
            <storage>
                <createTimestamp>2023-10-13T11:05:04.860Z</createTimestamp>
            </storage>
            <provenance>
                <assignmentPath>
                    <sourceRef oid="57208e97-ecc8-4541-8689-6a88069b3977" relation="org:default" type="c:TaskType"/>
                    <segment>
                        <segmentOrder>1</segmentOrder>
                        <assignmentId>1</assignmentId>
                        <targetRef oid="00000000-0000-0000-0000-000000000528" relation="org:default" type="c:ArchetypeType"/>
                        <matchingOrder>true</matchingOrder>
                    </segment>
                </assignmentPath>
            </provenance>
        </_metadata>
    </roleMembershipRef>
    <roleMembershipRef oid="00000000-0000-0000-0000-000000000514" relation="org:default" type="c:ArchetypeType">
        <_metadata>
            <storage>
                <createTimestamp>2023-10-13T11:05:04.860Z</createTimestamp>
            </storage>
            <provenance>
                <assignmentPath>
                    <sourceRef oid="57208e97-ecc8-4541-8689-6a88069b3977" relation="org:default" type="c:TaskType"/>
                    <segment>
                        <segmentOrder>1</segmentOrder>
                        <assignmentId>2</assignmentId>
                        <targetRef oid="00000000-0000-0000-0000-000000000514" relation="org:default" type="c:ArchetypeType"/>
                        <matchingOrder>true</matchingOrder>
                    </segment>
                </assignmentPath>
            </provenance>
        </_metadata>
    </roleMembershipRef>
    <ownerRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType"/>
    <executionState>runnable</executionState>
    <schedulingState>ready</schedulingState>
    <binding>loose</binding>
    <schedule>
        <interval>1800</interval>
    </schedule>
    <activity>
        <work>
            <shadowRefresh/>
        </work>
    </activity>
</task>
