<?xml version="1.0" encoding="UTF-8"?>
<objectTemplate oid="10000000-0000-0000-0000-000000000241"
                xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
                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:q="http://prism.evolveum.com/xml/ns/public/query-3"
                xmlns:ext="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext">

    <name>Role Template</name>

    <mapping>
        <name>SAP ActivityGroup metarole assignment</name>
        <authoritative>true</authoritative>
        <strength>strong</strength>
        <source>
            <path>subtype</path>
        </source>
        <expression>
            <assignmentTargetSearch>
                <targetType>c:RoleType</targetType>
                <oid>056f714a-efac-476f-b38e-9588b4907e5b</oid>
            </assignmentTargetSearch>
        </expression>
        <target>
            <path>assignment</path>
        </target>
        <condition>
            <script>
                <code>subtype == 'SAP-ActivityGroup'</code>
            </script>
        </condition>
    </mapping>

    <mapping>
        <name>SAP Group metarole assignment</name>
        <authoritative>true</authoritative>
        <strength>strong</strength>
        <source>
            <path>subtype</path>
        </source>
        <expression>
            <assignmentTargetSearch>
                <targetType>c:RoleType</targetType>
                <oid>239990f4-ffb9-417e-8784-7dc72e645db5</oid>
            </assignmentTargetSearch>
        </expression>
        <target>
            <path>assignment</path>
        </target>
        <condition>
            <script>
                <code>subtype == 'SAP-Group'</code>
            </script>
        </condition>
    </mapping>

    <mapping>
        <name>SAP Group metarole assignment</name>
        <authoritative>true</authoritative>
        <strength>strong</strength>
        <source>
            <path>subtype</path>
        </source>
        <expression>
            <assignmentTargetSearch>
                <targetType>c:RoleType</targetType>
                <oid>1fc57929-9f8c-4cc2-9bec-0873812704cd</oid>
            </assignmentTargetSearch>
        </expression>
        <target>
            <path>assignment</path>
        </target>
        <condition>
            <script>
                <code>subtype == 'SAP-Profile'</code>
            </script>
        </condition>
    </mapping>

</objectTemplate>
