[midPoint] template mapping how to get actual delta

Radovan Semancik radovan.semancik at evolveum.com
Thu Jul 14 17:31:27 CEST 2016


Hi,

Missing operation variable in the template seems to be a bug. Please 
file a bug report in our jira.

There is no variable that represents the delta now. And maybe there 
should be. I can see that this can be quite useful. Please add a feature 
request in jira. It should not be difficult to implement. However, it 
will need an endorsement from a midPoint subscriber (as usual).

Yet, there may be an indirect way how to get to the delta. You can get 
it from the model context 
(https://wiki.evolveum.com/display/midPoint/Model+Context). Now the 
question is how to get the model context in the expression. There seems 
to be no elegant way how to get it using MidPointFunctions library. That 
function seems to be omitted by mistake. But there is a less elegant way:

ctx = ModelExpressionThreadLocalHolder.getLensContext();

... that might work. Give it a try. Just please be aware that this is a 
bit of hacking and this method may disappear sometime in the future.

-- 
Radovan Semancik
Software Architect
evolveum.com



On 07/12/2016 03:46 PM, Oskar Butovič - AMI Praha a.s. wrote:
> Hello all,
>
> is there any way how to get actual delta in template mapping? variable 
> operation seemd to be nonexistent in midpoint 3.3.1 .
>
> i would like to execute certain mapping only if other certain user 
> attributes were changed.
>
> Best Regards
>
> Oskar Butovič
>
> -- 
>
> Oskar Butovič
> solution architect
>
> gsm: [+420] 774 480 101
> e-mail: oskar.butovic at ami.cz <mailto:oskar.butovic at ami.cz>
>
> 			
>
> AMI Praha a.s.
> Pláničkova 11
> 162 00 Praha 6
> tel.: [+420] 274 783 239
> web: www.ami.cz <http://www.ami.cz/>
>
> 			
>
> AMI Praha a.s.
>
>
> AMI Praha a.s. 
> <http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>
> 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.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160714/e17e4fff/attachment.htm>


More information about the midPoint mailing list