[midPoint] catch delta events in template

Roman Pudil - AMI Praha a.s. roman.pudil at ami.cz
Thu Apr 7 13:15:00 CEST 2016


Thanks! This works!


Roman Pudil
solution architect

gsm: [+420] 775 663 666
e-mail: roman.pudil at ami.cz


AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel./fax: [+420] 274 783 239
web: www.ami.cz





Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za 
společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít 
výhradně písemnou formu.



------ Původní zpráva ------
Od: "Ivan Noris" <ivan.noris at evolveum.com>
Komu: midpoint at lists.evolveum.com
Odesláno: 7.4.2016 11:51:30
Předmět: Re: [midPoint] catch delta events in template

>Hi Roman,
>
>I was using this in user template to copy each change of emailAddress 
>attribute, i.e. only new addresses entered there, to extended attribute 
>allMailAddresses (to keep all previous addresses):
>
>     <mapping>
>         <name>copy emailAddress on change</name>
>         <source>
>             <path>$user/employeeType</path>
>         </source>
>         <source>
>             <path>$user/emailAddress</path>
>         </source>
>         <expression>
>         <script>
>             <code>
>boolean isNew = 
>com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluationContext.getThreadLocal().isEvaluateNew()
>if (isNew && !basic.isEmpty(emailAddress)) return emailAddress
>             </code>
>         </script>
>     </expression>
>         <target>
>             <path>$user/extension/allMailAddresses</path>
>         </target>
>         <condition>
>              <script>
>                 <code>employeeType == 'EMP' || employeeType == 
>'EXT'</code>
>             </script>
>         </condition>
>         <evaluationPhase>afterAssignments</evaluationPhase>
>     </mapping>
>
>Regards,
>Ivan
>
>
>On 04/07/2016 11:45 AM, Roman Pudil - AMI Praha a.s. wrote:
>>Hi all,
>>
>>how to catch delta events in user template (similar "events" objects 
>>in notifications)?
>>
>>Situation - example:
>>User has familyName = "oldFamilyName"
>>Helpdesk Operator change familyname (in GUI) from "oldFamilyName" to 
>>"newFamilyName"
>>I need catch (probably in User Template?) ONLY new value 
>>"newFamilyName" and operate with this.
>>Thanks!
>>
>>Regards
>>
>>Roman Pudil
>>
>>Roman Pudil
>>solution architect
>>
>>gsm: [+420] 775 663 666
>>e-mail: roman.pudil at ami.cz
>>
>>
>>AMI Praha a.s.
>>Pláničkova 11
>>162 00 Praha 6
>>tel./fax: [+420] 274 783 239
>>web: www.ami.cz
>>
>>
>>
>>
>>
>>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za 
>>společnost AMI Praha a.s.
>>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít 
>>výhradně písemnou formu.
>>
>>
>>
>>_______________________________________________ midPoint mailing list 
>>midPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>-- Ing. Ivan Noris Senior Identity Management Engineer & IDM Architect 
>evolveum.com evolveum.com/blog/ 
>___________________________________________________ "Semper ID(e)M 
>Vix."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160407/66802d48/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4060 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160407/66802d48/attachment.bin>


More information about the midPoint mailing list