<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello Aivo,</p>
    <p><br>
    </p>
    <p>it's because approverExpression is a multi-valued property.
      Changed focusMapping just says "add the following value". It does
      not say "remove all the other values".</p>
    <p><br>
    </p>
    <p>It is possible that it could be set up to be non-tolerant (I
      don't have exact details in my head). But maybe much simpler is to
      user <approvalSchema> (that can contain approverExpressions)
      -> that one is single-valued, so a new value will overwrite old
      ones. <br>
    </p>
    <p><br>
    </p>
    <p>At least I think so.</p>
    <p><br>
    </p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 25.10.2016 10:39, Aivo Kuhlberg
      wrote:<br>
    </div>
    <blockquote cite="mid:1477384751355.727@rmit.ee" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
      <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"
            face="Calibri, sans-serif" color="#000000"><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=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>
                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>
      <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>