<?xml version="1.0" encoding="utf-16"?><html><head><style type="text/css"><!--blockquote.cite2
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 3px; padding-top: 0px;}
a img
{border: 0px;}
body
{font-family: Tahoma; font-size: 12pt;}
--></style></head><body><div>Yes, some example:</div><div><br /></div><div>         <correlation><br />            <q:equal><br />               <q:path>c:name</q:path><br />               <expression><br />                  <variable><br />                     <name xmlns:my="<a href="http://myself.me/schemas/whatever">http://myself.me/schemas/whatever</a>">my:distinguishedName</name><br />                     <c:path>$shadow/attributes/ri:dn</c:path><br />                  </variable><br />                  <script><br />                     <language><a href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy">http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</a></language><br />                     <code><br />                        def cn = '';<br />                        if (!basic.isEmpty(distinguishedName)) {<br />                            // workaround - vycisteni carek primo v DN (napr. Udalosti, komentare)<br />                            tmpDN = distinguishedName.replaceAll('\\\\,','--');<br />                            // ziskani CN z DN<br />                            cn = 'AD: ' + distinguishedName.substring(3, tmpDN.indexOf(","));<br />                            cn = cn.replaceAll('\\\\','');<br />                        }<br />                        return cn;<br />                    </code><br />                  </script><br />               </expression><br />            </q:equal><br />         </correlation></div><div><br /></div><div><br /></div><div id="signature_old"><div style="FONT-SIZE: 12pt; FONT-FAMILY: Tahoma">
<table style="WHITE-SPACE: normal; WORD-SPACING: 0px; BORDER-COLLAPSE: collapse; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); FONT: medium 'Times New Roman'; WIDOWS: 1; LETTER-SPACING: normal; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">
<tbody>
<tr>
<td style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; VERTICAL-ALIGN: bottom; COLOR: rgb(0,0,0)" colspan="2">
<p><span style="FONT-SIZE: 14px; FONT-WEIGHT: bold">Roman Pudil</span><br />solution architect<br /><br />gsm: [+420] 775 663 666<br />e-mail:<span class="Apple-converted-space"> </span><a href="mailto:roman.pudil@ami.cz">roman.pudil@ami.cz</a></p></td>
<td style="BORDER-RIGHT: rgb(204,204,204) 1px solid">   </td>
<td>   </td>
<td style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; VERTICAL-ALIGN: bottom; COLOR: rgb(0,0,0)">
<p>AMI Praha a.s.<br />Pláničkova 11<br />162 00 Praha 6<br />tel./fax: [+420] 274 783 239<br />web:<span class="Apple-converted-space"> </span><a href="http://www.ami.cz">www.ami.cz</a></p></td>
<td style="BORDER-RIGHT: rgb(204,204,204) 1px solid">   </td>
<td>   </td>
<td style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; COLOR: rgb(0,0,0)">
<p><img title="AMI Praha a.s." border="0" alt="" src="http://www.ami.cz/images/podpis/ami_logo.gif " /></p></td></tr>
<tr>
<td colspan="8"><br /><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"><img border="0" alt="" src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" /></a></td></tr>
<tr>
<td style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; COLOR: rgb(128,128,128)" colspan="8"><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.</td></tr></tbody></table></div></div><div><br /></div><div><br /></div><div><br /></div>
<div>------ Původní zpráva ------</div>
<div>Od: "Oskar Butovič - AMI Praha a.s." <<a href="mailto:oskar.butovic@ami.cz">oskar.butovic@ami.cz</a>></div>
<div>Komu: "midPoint General Discussion" <<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>></div>
<div>Odesláno: 7.3.2017 14:14:01</div>
<div>Předmět: [midPoint] correlation expression</div><div><br /></div>
<div id="xa092cfd01608415"><blockquote cite="CAE8MtZA9_RD8mOVCdNCAvSYOijvTo3v9vhkxA1HwuJFK+jSPTQ@mail.gmail.com" type="cite" class="cite2">
<div dir="ltr">Hello everybody,<div><br /></div><div>today I would need to have some simple expression in correlation. would something like this be posssible?:</div><div><br /></div><div><div><correlation></div><div>            <q:equal></div><div>               <q:path>c:name</q:path></div><div>               <expression></div><div>                  <c:path>"ad_" + $shadow/attributes/sAMAccountName</c:path></div><div>               </expression></div><div>            </q:equal></div><div>         </correlation></div><div><br /></div><div>Best Regards</div><div><br /></div><div>Oskar Butovič</div><div><br /></div>-- <br /><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><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"><p><span style="font-size:14px;font-weight:bold">Oskar Butovič</span><br />solution architect<br /><br />gsm: [+420] 774 480 101<br />e-mail: <a href="mailto:oskar.butovic@ami.cz">oskar.butovic@ami.cz</a></p></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">   </td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray">   </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"><p>AMI Praha a.s.<br />Pláničkova 11<br />162 00 Praha 6<br />tel.: [+420] 274 783 239<br />web: <a href="http://www.ami.cz/">www.ami.cz</a></p></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">   </td><td style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray">   </td><td style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:11px;margin:8px;width:116px;border:0px solid gray"><p><img src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s." style="border: 0px;" /></p></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 /><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"><img src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI Praha a.s." style="border: 0px; width: 480px; height: 82px;" /></a></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 />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 /></td></tr></tbody></table></div></div></div></div></div></div></div>
</div></div>
</blockquote></div>
</body></html>