<div dir="ltr"><div><div><div>Hi all,<br></div>A little question. I did not find of any examples of using java script in <label>Correlation</label>
Filter clause.<br></div>I have try this one (please find below) and another syntax but everything is wrong.<br></div>I know workaround to store concatenated value data into some focus attribute then just compare both in <label>Correlation</label>
Filter clause but I want to find another way. Is it possible to do the same on the fly with script expression in filter clause?<br><div><div><br></div><div><br></div><div>Wrong java script in <label>Correlation</label>
Filter clause</div><div><br><q:equal xmlns:org="<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3">http://midpoint.evolveum.com/xml/ns/public/common/org-3</a>"><br> <q:path>c:employeeNumber</q:path><br> <expression><br> <script><br> <code><br> 'HRM'+$account/attributes/PID<br> </code><br> </script><br> </expression><br></q:equal><br></div><div><br></div><div>Error<br>Caused by: com.evolveum.midpoint.util.exception.ExpressionEvaluationException: Couldn't evaluate expressioncom.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionType@7f6fe5c2[description=<null>,extension=<null>,trace=<null>,stringFilter=<null>,variable=[],returnMultiplicity=<null>,allowEmptyValues=<null>,queryInterpretationOfNoValue=<null>,runAsRef=<null>,expressionEvaluator=[javax.xml.bind.JAXBElement@5c1f8636]]: groovy.lang.MissingPropertyException: No such property: $account for class: Script16 in (new) Correlation expression<br><br><div><div>Thank you, in advance.<br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, Mednieku str. 4a, Riga, LV-1010, Latvia <br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>, <div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div> | <div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br><img src="cid:o.nekriach@dynatech.lv1502777022855-7770"> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0px 0px"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7771"></a></div><div style="display:inline-block;margin:5px 0px 0px"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7772"></a></div><br><br><span style="font-size:11px;color:rgb(161,161,161)">Confidentiality
Notice: This message contains confidential information and is intended
only for the named recipient(s). If you are not the addressee you may
not copy, distribute or perform any other activities with this
information. If you have received this transmission in error, please
notify us by e-mail immediately. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.</span></span></div></div></div></div>
</div></div></div></div></div>