<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
{margin-top:0;
margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Pavol,</p>
<p>Yes, changing approverExpression to approvalSchema solved the problem. Thank you Pavol.<br>
</p>
<p>Regards,</p>
<p>Aivo Kuhlberg<br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Saatja:</b> Aivo Kuhlberg<br>
<b>Saadetud:</b> 25. oktoober 2016 11:39<br>
<b>Adressaat:</b> midpoint<br>
<b>Teema:</b> Vs: Setting approverExpression to roles</font>
<div> </div>
</div>
<div>
<p>Hi again,<br>
One thing I noticed with focusMappings is that when I edit the focusmappings content in my metarole and then run "Recompute all members" of this metarole and look at the content of member roles then I see both old (before change) and changed focusMappings content.
Is that a bug or intended behavior?</p>
<p>Below is an example after I changed description to "New description". You can see that there is now 2 approverExpression sections in role:</p>
<p>...<br>
</p>
<p><span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <assignment id="1"></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <targetRef oid="8e8db1f5-6841-4774-a2df-c71b64c6a5b2" type="c:RoleType"><!-- metarole-managerapproves --></targetRef></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </assignment></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <activation></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <effectiveStatus>enabled</effectiveStatus></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <enableTimestamp>2016-10-25T11:16:02.180+03:00</enableTimestamp></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </activation></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <iteration>0</iteration></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <iterationToken/></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <roleMembershipRef oid="8e8db1f5-6841-4774-a2df-c71b64c6a5b2" type="c:RoleType"><!-- metarole-managerapproves --></roleMembershipRef></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <requestable>true</requestable></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <approverExpression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <description>Get user's managers (except the user itself)</description></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <code>midpoint.getManagersOidsExceptUser(object)</code></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </approverExpression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <approverExpression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <description>New description</description></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <code>midpoint.getManagersOidsExceptUser(object)</code></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </approverExpression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"></role></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"></span>Regards,<br>
Aivo Kuhlberg<br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Saatja:</b> Aivo Kuhlberg<br>
<b>Saadetud:</b> 24. oktoober 2016 17:18<br>
<b>Adressaat:</b> midpoint<br>
<b>Teema:</b> Setting approverExpression to roles</font>
<div> </div>
</div>
<div>
<p>Thanks Pavol and Radovan for helping me.<br>
Based on Pavol's link I succeeded to make it work with following metarole:<br>
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"><role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" oid="8e8db1f5-6841-4774-a2df-c71b64c6a5b2"></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <name>metarole-managerapproves</name></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <inducement id="1"></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <focusMappings></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <mapping></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <strength>strong</strength></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <expression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <value></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <description>Get user's managers (except the user itself)</description></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <code>midpoint.getManagersOidsExceptUser(object)</code></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </script></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </value></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </expression></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <target></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> <path>approverExpression</path></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </target></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </mapping></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </focusMappings></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"> </inducement></span></span><br style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)">
<span style="font-family:Consolas,monospace; font-size:9pt; color:rgb(0,111,201)"><span style="color:rgb(0,111,201)"></role></span></span><br>
<br>
Best Regards,<br>
Aivo Kuhlberg<br>
</p>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for official use.</font>
</body>
</html>