<div dir="ltr"><div><div>Hello Arnošt,</div><div><br></div>Thank you, you are right now it works.<br></div>Regards, Oleksandr<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-18 12:53 GMT+03:00 Arnošt Starosta - AMI Praha a.s. <span dir="ltr"><<a href="mailto:arnost.starosta@ami.cz" target="_blank">arnost.starosta@ami.cz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Oleksandr,<br><br>the variable bindings should work the same for all expression languages, so i guess you missed the variable declaration. you can try<span class=""><br><br><q:equal xmlns:org="<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/org-3</a>"><br> <q:path>c:employeeNumber</q:<wbr>path><br> <expression><br></span> <variable><br> <name>pid</name><br> <c:path>$shadow/attributes/ri:<wbr>PID</c:path><br> </variable><br> <script><br> <code><br> 'HRM'+ pid<span class=""><br> </code><br> </script><br> </expression><br></q:equal><br><br></span>arnost<div><div class="h5"><br><br><br>2017-10-18 11:28 GMT+02:00 Oleksandr Nekriach <<a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a>>:<br>><br>> Hi all,<br>> A little question. I did not find of any examples of using java script in Correlation Filter clause.<br>> I have try this one (please find below) and another syntax but everything is wrong.<br>> I know workaround to store concatenated value data into some focus attribute then just compare both in Correlation 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>><br>><br>> Wrong java script in Correlation Filter clause<br>><br>> <q:equal xmlns:org="<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/org-3</a>"><br>> <q:path>c:employeeNumber</q:<wbr>path><br>> <expression><br>> <script><br>> <code><br>> 'HRM'+$account/attributes/PID<br>> </code><br>> </script><br>> </expression><br>> </q:equal><br>><br>> Error<br>> Caused by: com.evolveum.midpoint.util.<wbr>exception.<wbr>ExpressionEvaluationException: Couldn't evaluate expressioncom.evolveum.<wbr>midpoint.xml.ns._public.<wbr>common.common_3.<wbr>ExpressionType@7f6fe5c2[<wbr>description=<null>,extension=<<wbr>null>,trace=<null>,<wbr>stringFilter=<null>,variable=[<wbr>],returnMultiplicity=<null>,<wbr>allowEmptyValues=<null>,<wbr>queryInterpretationOfNoValue=<<wbr>null>,runAsRef=<null>,<wbr>expressionEvaluator=[javax.<wbr>xml.bind.JAXBElement@5c1f8636]<wbr>]: groovy.lang.<wbr>MissingPropertyException: No such property: $account for class: Script16 in (new) Correlation expression<br>><br>> Thank you, in advance.<br>><br>> --<br>> Best regards,<br>><br>> Oleksandr Nekriach | Identity and access management engineer<br>><br>> Dynatech, Mednieku str. 4a, Riga, LV-1010, Latvia<br>><br>> <a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a><br>> ,<br>> <a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a><br>> |<br>> <a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a><br>><br>><br>><br>><br></div></div>> Stay connected:<span class=""><br>><br>><br>> 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.<br>><br></span>> ______________________________<wbr>_________________<br>> midPoint mailing list<br>> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>><br><br><br><br>--<br><br>Arnošt Starosta<br>solution architect<br><br>gsm: <a href="tel:+420%20603%20794%20932" value="+420603794932" target="_blank">[+420] 603 794 932</a><br>e-mail: <a href="mailto:arnost.starosta@ami.cz" target="_blank">arnost.starosta@ami.cz</a><br><br> <br><br>AMI Praha a.s.<br>Pláničkova 11<br>162 00 Praha 6<br>tel.: <a href="tel:+420%20274%20783%20239" value="+420274783239" target="_blank">[+420] 274 783 239</a><br>web: <a href="http://www.ami.cz" target="_blank">www.ami.cz</a><br><br> <br><br><br><br>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br><br><div class="gmail_extra"><div class="m_-2803712258325632756gmail_signature"><div dir="ltr"><div><div dir="ltr"><table style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px;border-style:solid;width:482px"><tbody><tr style="padding:0px;margin:0px;border:0px solid gray"><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px solid gray"><br></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-width:0px 1px 0px 0px;border-style:solid;border-color:gray rgb(204,204,204) gray gray;padding:0px"><br></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray"><br></td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px solid gray"><br></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-width:0px 1px 0px 0px;border-style:solid;border-color:gray rgb(204,204,204) gray gray;padding:0px"><br></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray"><br></td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;width:116px;border:0px solid gray"><br></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray"><td colspan="7" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px solid gray"><br></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray"><td colspan="7" style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px solid gray"><br></td></tr></tbody></table></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:#4c4c4c">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 0 0"><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 0 0 0"><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:#a1a1a1">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>