[midPoint] XML Object Query Filters for Recompute tasks

Ivan Noris ivan.noris at evolveum.com
Fri Nov 11 15:01:43 CET 2016


Hi Sergio,

recompute does not allow this directly, but if recompute has been
executed using query, there is a way:

<task oid="08e2fbc8-9622-11e6-a917-3c970e44b9e2"
    xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
    xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
    xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                 
    <name>User Recompute Task XYZ</name>
    <description>Recomputes enabled EMP users</description>
     <extension>
        <mext:objectQuery
xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3">
        <q:filter>
        <q:and>
            <q:equal>
                <q:path>c:employeeType</q:path>
                <q:value>EMP</q:value>
            </q:equal>
            <q:equal><!-- Only enabled users -->
                <q:path>c:activation/administrativeStatus</q:path>
                <q:value>enabled</q:value>
            </q:equal>
        </q:and>
        </q:filter>
*            <q:paging>**
**                <q:orderBy>name</q:orderBy>**
**            </q:paging>**
*        </mext:objectQuery>
    </extension>
    <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
    <executionStatus>runnable</executionStatus>
   
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/recompute/handler-3</handlerUri>
    <recurrence>single</recurrence>
    <binding>tight</binding>
</task>

If such task is executed, it's processing users sequentially. If it
stops, you "continue" by adding another condition to the <q:and>:
*            <q:greater>**
**                <q:path>name</q:path>**
**                <q:value>lastprocessedname</q:value>**
**            </q:greater>**
*
Then if you start that task, it should "continue" by processing of the
next user (sorted alphabetically).
Of course if the set of your users has changed meanwhile this will not
guarantee that it will process all of them.

Regards,
Ivan


On 11/11/2016 02:34 PM, Sergio Ortiz wrote:
> Hi all,
>
> 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.
>
> Thanks for your opinions.
>
> Greetings
>
> Ing. Sergio Ortiz
> *Identicum S.A.*
> Jorge Newbery 3226
> Tel: +54 (11) 4552-3050
> www.identicum.com <http://www.identicum.com>
>
> 2016-11-03 16:55 GMT-03:00 Sergio Ortiz <sortiz at identicum.com
> <mailto:sortiz at identicum.com>>:
>
>     Hi all,
>
>     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.
>
>     Thanks for your opinions.
>
>     Greetings
>
>     Ing. Sergio Ortiz
>     *Identicum S.A.*
>     Jorge Newbery 3226
>     Tel: +54 (11) 4552-3050
>     www.identicum.com <http://www.identicum.com>
>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Ivan Noris
Senior Identity Engineer
evolveum.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161111/4ee2def4/attachment.htm>


More information about the midPoint mailing list