[midPoint] Setting approverExpression to roles

Aivo Kuhlberg aivo.kuhlberg at rmit.ee
Mon Oct 24 16:18:48 CEST 2016


Thanks Pavol and Radovan for helping me.
Based on Pavol's link I succeeded to make it work with following metarole:
<role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" oid="8e8db1f5-6841-4774-a2df-c71b64c6a5b2">
    <name>metarole-managerapproves</name>
    <inducement id="1">
        <focusMappings>
            <mapping>
                <strength>strong</strength>
                <expression>
                    <value>
                        <description>Get user's managers (except the user itself)</description>
                        <script>
                            <code>midpoint.getManagersOidsExceptUser(object)</code>
                        </script>
                    </value>
                </expression>
                <target>
                    <path>approverExpression</path>
                </target>
            </mapping>
        </focusMappings>
    </inducement>
</role>

Best Regards,
Aivo Kuhlberg

________________________________
Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.
This e-mail may contain information which is classified for official use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161024/de8079a2/attachment.htm>


More information about the midPoint mailing list