<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Sergio,</p>
<p>sorry for misleading you, but "lastprocessedname" is not midPoint
variable, it was just a placeholder in that example for the name
of the last processed object that you are aware of.</p>
<p>So if you start recompute and check the logs, you will see log
entries about object being recomputed (or failed). When you
suspend recompute and wish to continue, you can go back in the log
and see which object was the last. e.g. "john.smith" was processed
successfully, but "jonathan.smith" was not - so the additional
condition to put to the task filter "q:and" would be <br>
</p>
<q:greater><br>
<q:path>name</q:path><br>
<q:value>john.smith</q:value><br>
</q:greater><br>
<br>
Of course this works ONLY if the recompute task keeps the same order
in both runs (achieved by:<br>
<q:paging><br>
<q:orderBy>name</q:orderBy><br>
</q:paging><br>
).<br>
<br>
Hope this helps,<br>
Ivan<br>
<br>
<div class="moz-cite-prefix">On 11/14/2016 08:57 PM, Sergio Ortiz
wrote:<br>
</div>
<blockquote
cite="mid:CA+-WvagntoLFbeRb0nMKFtahY_Q7Odc_xBKYVTXfQUehk_E8Rg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Ivan,
<div><br>
</div>
<div>Thanks a lot for the information, but when I try to apply
the filter with the variable <b style="font-size:12.8px">lastprocessedname
</b><span style="font-size:12.8px">it doesn't works, please,
could you refer me where I can check this one? or in which
version of Midpoint could I use it? my version is 3.4.1.</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">I tried this variable as a
simple filter with </span><b style="font-size:12.8px">lastprocessedname,
</b><span style="font-size:12.8px">and Midpoint returns null.</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Greetings</span></div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><span
style="font-size:12.8px;color:rgb(0,0,0);font-family:verdana,sans-serif">Ing. </span>Sergio
Ortiz</div>
<div><font color="#999999"><b>Identicum S.A.</b></font></div>
<div>
<div style="font-size:12.8px"><font
face="arial, helvetica, sans-serif"><font
style="font-size:12.8px" color="#999999">Jorge
Newbery 3226</font></font></div>
<div style="font-size:12.8px"><font
face="arial, helvetica, sans-serif"><font
style="font-size:12.8px" color="#999999">Tel:
+54 (11) 4552-3050</font></font></div>
</div>
<div><a moz-do-not-send="true"
href="http://www.identicum.com"
target="_blank">www.identicum.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2016-11-11 11:01 GMT-03:00 Ivan Noris <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi Sergio,</p>
<p>recompute does not allow this directly, but if
recompute has been executed using query, there is a way:</p>
<p><task oid="08e2fbc8-9622-11e6-a917-<wbr>3c970e44b9e2"<br>
xmlns=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
target="_blank">"http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3"</a><br>
xmlns:c=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
target="_blank">"http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3"</a><br>
xmlns:q=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://prism.evolveum.com/xml/ns/public/query-3"
target="_blank">"http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>query-3"</a><br>
xmlns:xsi=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema-instance"
target="_blank">"http://www.w3.org/<wbr>2001/XMLSchema-instance"</a><br>
xmlns:xsd=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema"
target="_blank">"http://www.w3.org/<wbr>2001/XMLSchema"</a>><br>
<br>
<name>User Recompute Task XYZ</name><br>
<description>Recomputes enabled EMP
users</description><br>
<extension><br>
<mext:objectQuery
xmlns:mext=<a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/model/extension-3"
target="_blank">"http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>model/extension-3"</a>><br>
<q:filter><br>
<q:and><br>
<q:equal><br>
<q:path>c:employeeType</q:<wbr>path><br>
<q:value>EMP</q:value><br>
</q:equal><br>
<q:equal><!-- Only enabled users
--><br>
<q:path>c:activation/<wbr>administrativeStatus</q:path><br>
<q:value>enabled</q:value><br>
</q:equal><br>
</q:and><br>
</q:filter><br>
<b> <q:paging></b><b><br>
</b><b>
<q:orderBy>name</q:orderBy></b><b><br>
</b><b> </q:paging></b><b><br>
</b> </mext:objectQuery><br>
</extension><br>
<ownerRef oid="00000000-0000-0000-0000-<wbr>000000000002"/><br>
<executionStatus>runnable</<wbr>executionStatus><br>
<handlerUri><a moz-do-not-send="true"
class="m_1699227611876840896moz-txt-link-freetext"
href="http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/recompute/handler-3"
target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>model/synchronization/task/<wbr>recompute/handler-3</a></<wbr>handlerUri><br>
<recurrence>single</<wbr>recurrence><br>
<binding>tight</binding><br>
</task><br>
<br>
</p>
If such task is executed, it's processing users
sequentially. If it stops, you "continue" by adding
another condition to the <q:and>:<br>
<b> <q:greater></b><b><br>
</b><b> <q:path>name</q:path></b><b><br>
</b><b>
<q:value>lastprocessedname</q:<wbr>value></b><b><br>
</b><b> </q:greater></b><b><br>
</b><br>
Then if you start that task, it should "continue" by
processing of the next user (sorted alphabetically).<br>
Of course if the set of your users has changed meanwhile
this will not guarantee that it will process all of them.<br>
<br>
Regards,<br>
Ivan
<div>
<div class="h5"><br>
<br>
<br>
<div class="m_1699227611876840896moz-cite-prefix">On
11/11/2016 02:34 PM, Sergio Ortiz wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr"><span style="font-size:12.8px">Hi
all,</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">I would like to
know if there is a query or a way that permit to
resume</span><br style="font-size:12.8px">
<span style="font-size:12.8px">recompute tasks and
not re-evaluate all the scope of users, only the
users that</span><br style="font-size:12.8px">
<span style="font-size:12.8px">have not been
processed.</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">Thanks for your
opinions.</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">Greetings</span><br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div
class="m_1699227611876840896gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><span
style="font-size:12.8px;color:rgb(0,0,0);font-family:verdana,sans-serif">Ing. </span>Sergio
Ortiz</div>
<div><font color="#999999"><b>Identicum
S.A.</b></font></div>
<div>
<div style="font-size:12.8px"><font
face="arial, helvetica,
sans-serif"><font
style="font-size:12.8px"
color="#999999">Jorge
Newbery 3226</font></font></div>
<div style="font-size:12.8px"><font
face="arial, helvetica,
sans-serif"><font
style="font-size:12.8px"
color="#999999">Tel: +54
(11) 4552-3050</font></font></div>
</div>
<div><a moz-do-not-send="true"
href="http://www.identicum.com"
target="_blank">www.identicum.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2016-11-03 16:55
GMT-03:00 Sergio Ortiz <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:sortiz@identicum.com"
target="_blank">sortiz@identicum.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div>I would like to know if there is a
query or a way that permit to resume
recompute tasks and not re-evaluate all
the scope of users, only the users that
have not been processed.</div>
<div><br>
</div>
<div>Thanks for your opinions.</div>
<div><br>
</div>
<div>Greetings</div>
<div><br clear="all">
<div>
<div
class="m_1699227611876840896m_7648684766807359144gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><span
style="font-size:12.8px;color:rgb(0,0,0);font-family:verdana,sans-serif">Ing. </span>Sergio
Ortiz</div>
<div><font color="#999999"><b>Identicum
S.A.</b></font></div>
<div>
<div
style="font-size:12.8px"><font
face="arial,
helvetica,
sans-serif"><font
style="font-size:12.8px"
color="#999999">Jorge
Newbery 3226</font></font></div>
<div
style="font-size:12.8px"><font
face="arial,
helvetica,
sans-serif"><font
style="font-size:12.8px"
color="#999999">Tel:
+54 (11) 4552-3050</font></font></div>
</div>
<div><a
moz-do-not-send="true"
href="http://www.identicum.com" target="_blank">www.identicum.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset
class="m_1699227611876840896mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" class="m_1699227611876840896moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="m_1699227611876840896moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<pre class="m_1699227611876840896moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
</font></span></div>
______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</blockquote></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
<pre class="moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre></body></html>