<div dir="ltr">Hello everyone,<div><br></div><div>I'm currently trying to build a task to disable users when they reach their termination date in midPoint (expressed on a custom attribute as dd/MM/yyyy).</div><div><br></div><div>I'm having difficulties defining a search filter that would evaluate equality to a value returned by a Groovy script, the code is the following:</div><div><br></div><div><div><scext:executeScript xmlns:scext="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3">http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3</a>"></div><div>                <s:search xmlns:s="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</a>"></div><div>                    <s:type>c:UserType</s:type></div><div>                    <s:searchFilter></div><div>                        <q:equal></div><div>                            <q:path>extension/metaEndDate</q:path></div><div>                            <c:expression></div><div>                                <c:script></div><div>                                    <c:code></div><div>                                        def dateTime = new Date().format( 'dd/MM/yyyy' );</div><div>                                        return dateTime.toString();</div><div>                                    </c:code></div><div>                                </c:script></div><div>                            </c:expression></div><div>                        </q:equal></div><div>                    </s:searchFilter></div><div>                    <s:action></div><div>                        <s:type>disable</s:type></div><div>                    </s:action></div><div>                </s:search></div><div>            </scext:executeScript></div><div><br></div><div>Error (execution time) I recieve is the following: <span style="color:rgb(51,51,51);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(249,249,249)">Couldn't execute script: Couldn't parse object filter due to schema exception</span></div><div><span style="color:rgb(51,51,51);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(249,249,249)"><br></span></div>I understand this must be related to namespaces definitions. I couldn't find any example of what i'm trying to do either.</div><div><br></div><div>Do you know if this is possible?</div><div><br></div><div>Thanks.<br><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b>Rodrigo Yanis.</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br></font>Jorge Newbery 3226<br>Tel: +54 (11) 4824-9971<font face="arial, helvetica, sans-serif"><br><a href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br><a href="http://www.identicum.com/" target="_blank"><font color="#0b5394">www.identicum.com</font></a></font></div></div></div></div></div></div></div></div></div></div></div>
</div></div>