[midPoint] Java script in Correlation Filter clause

Oleksandr Nekriach o.nekriach at dynatech.lv
Wed Oct 18 11:28:35 CEST 2017


Hi all,
A little question. I did not  find of any examples of using java script in
Correlation Filter clause.
I have try this one (please find below) and another syntax but everything
is wrong.
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?


Wrong java script in Correlation Filter clause

<q:equal xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3
">
   <q:path>c:employeeNumber</q:path>
   <expression>
      <script>
      <code>
      'HRM'+$account/attributes/PID
       </code>
      </script>
   </expression>
</q:equal>

Error
Caused by:
com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
Couldn't evaluate
expressioncom.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionType at 7f6fe5c2
[description=<null>,extension=<null>,trace=<null>,stringFilter=<null>,variable=[],returnMultiplicity=<null>,allowEmptyValues=<null>,queryInterpretationOfNoValue=<null>,runAsRef=<null>,expressionEvaluator=[javax.xml.bind.JAXBElement at 5c1f8636]]:
groovy.lang.MissingPropertyException: No such property: $account for class:
Script16 in (new) Correlation expression

Thank you, in advance.

-- 
Best regards,

Oleksandr Nekriach | Identity and access management engineer

Dynatech, Mednieku str. 4a, Riga, LV-1010, Latvia

+37125314685 <+371%2025%20314%20685>
,
o.nekriach at dynatech.lv
|
www.dynatech.lv




Stay connected:
<https://www.facebook.com/DynatechLatvia/?ref=br_rs>
<https://www.linkedin.com/company-beta/17893047/>


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171018/b98aa7ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1502777022855-7771
Type: image/png
Size: 790 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171018/b98aa7ad/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1502777022855-7772
Type: image/png
Size: 786 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171018/b98aa7ad/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o.nekriach at dynatech.lv1502777022855-7770
Type: image/png
Size: 2602 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171018/b98aa7ad/attachment-0002.png>


More information about the midPoint mailing list