<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Projector maintains "old" state for all objects that it is
      processing. But ... projector will know old account values only if
      it reads an account before or during the operation. That does not
      always happens - by purpose. MidPoint is build around the concept
      of relative changes: adding or removing values. In many cases we
      do not care what the old value was, so we do not need to read the
      account. And if we do not need it then we do not do it. It is much
      more efficient.<br>
      <br>
      One way to get the old values is to always force reconciliation.
      Reconciliation will cause reading of the accounts and then the old
      values will be there.<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Radovan Semancik
Software Architect
evolveum.com</pre>
      <br>
      <br>
      On 12/23/2015 09:39 AM, Alexander Omelchenko wrote:<br>
    </div>
    <blockquote
      cite="mid:B15F3FFE-210B-43AF-82AD-E63BA959A1A8@cleverics.ru"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi
      <div class="">I want to get changes in resource objects to logs.
        But using Projector logger i get already changed values. </div>
      <div class="">For example, i have a Group1 in AD with a member -
        User1. After adding User2 to Group1 i’m getting log like this:</div>
      <div class=""><br class="">
      </div>
      <div class="">---[ PROJECTOR (INITIAL) context projector start
        ]————————————————</div>
      <div class="">…</div>
      <div class="">PROJECTIONS: (1):</div>
      <div class="">Entitlement old:</div>
      <div class="">    ...</div>
      <div class="">            attributes: </div>
      <div class="">                ...</div>
      <div class="">                cn: Group1</div>
      <div class="">                member: </div>
      <div class="">                  CN=User1,OU=Users,DC=test,DC=idm </div>
      <div class="">
        <div class="">
          <div style="margin: 0cm 0cm 0.0001pt;" class="">             
                CN=User2,OU=Users,DC=test,DC=idm</div>
          <div style="margin: 0cm 0cm 0.0001pt;" class="">
            <div class="">Entitlement current:</div>
            <div class="">    ...</div>
            <div class="">            attributes: </div>
            <div class="">                ...</div>
            <div class="">                cn: Group1</div>
            <div class="">                member: </div>
            <div class="">                 
              CN=User1,OU=Users,DC=test,DC=idm </div>
            <div class="">
              <div style="margin: 0cm 0cm 0.0001pt;" class="">         
                        CN=User2,OU=Users,DC=test,DC=idm</div>
              <div style="margin: 0cm 0cm 0.0001pt;" class="">
                <div class="">Entitlement new:</div>
                <div class="">    ...</div>
                <div class="">            attributes: </div>
                <div class="">                ...</div>
                <div class="">                cn: Group1</div>
                <div class="">                member: </div>
                <div class="">                 
                  CN=User1,OU=Users,DC=test,DC=idm </div>
                <div class="">
                  <div style="margin: 0cm 0cm 0.0001pt;" class="">     
                                CN=User2,OU=Users,DC=test,DC=idm</div>
                  <div style="margin: 0cm 0cm 0.0001pt;" class="">…</div>
                  <div style="margin: 0cm 0cm 0.0001pt;" class="">
                    <div style="margin: 0cm 0cm 0.0001pt;" class="">   
                        Entitlement primary delta: null</div>
                    <div style="margin: 0cm 0cm 0.0001pt;" class="">   
                        Entitlement secondary delta: null</div>
                    <div style="margin: 0cm 0cm 0.0001pt;" class="">   
                        Entitlement sync delta: null</div>
                    <div style="margin: 0cm 0cm 0.0001pt;" class="">   
                        Entitlement executed deltas: []</div>
                  </div>
                  <div style="font-size: 11pt; font-family: Calibri,
                    sans-serif; margin: 0cm 0cm 0.0001pt;" class=""><br
                      class="">
                  </div>
                </div>
                <div style="font-size: 11pt; font-family: Calibri,
                  sans-serif; margin: 0cm 0cm 0.0001pt;" class="">All
                  values a equal at all stages (context after load,
                  SECONDARY, etc.). With Clockwork logger the same
                  situation. </div>
                <div style="font-size: 11pt; font-family: Calibri,
                  sans-serif; margin: 0cm 0cm 0.0001pt;" class="">Is
                  this a right behavior? Where can i get deltas?</div>
              </div>
            </div>
          </div>
          <div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
            font-family: Calibri, sans-serif;" class=""><span
              style="font-size: 10pt; font-family: Tahoma, sans-serif;
              color: rgb(64, 64, 64);" class=""> </span><span
              style="color: rgb(64, 64, 64); font-family: Tahoma,
              sans-serif; font-size: 10pt;" class=""> </span></div>
          <div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
            font-family: Calibri, sans-serif;" class=""><a
              moz-do-not-send="true" name="_MailAutoSig" class=""><span
                style="font-size: 10pt; font-family: Tahoma, sans-serif;
                color: rgb(89, 89, 89);" class="" lang="EN-US">Kind
                regards</span></a><span style="font-size: 10pt;
              font-family: Tahoma, sans-serif; color: rgb(89, 89, 89);"
              class="">,<o:p class=""></o:p></span></div>
          <div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
            font-family: Calibri, sans-serif;" class=""><span
              style="font-size: 10pt; font-family: Tahoma, sans-serif;
              color: rgb(89, 89, 89);" class="" lang="EN-US">Alexander
              Omelchenko</span></div>
        </div>
        <br class="">
      </div>
      <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>
    <br>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>