[midPoint] getting old value in mapping, missing something in script
Jason Everling
jeverling at bshp.edu
Tue Jan 29 18:42:27 CET 2019
this seems to be working in the template,
<expression>
<script>
<code>
oldObj =
midpoint.getFocusContext().getObjectOld().asObjectable();
oldValue = basic.getPropertyValue(oldObj,
"extension/attr2");
return oldValue;
</code>
</script>
</expression>
<target>
<c:path xmlns:ns="http://ns.test.edu
">extension/ns:previousAttr2</c:path>
</target>
JASON
On Tue, Jan 29, 2019 at 10:12 AM Jason Everling <jeverling at bshp.edu> wrote:
> I must be missing something, I scoured the forums and pages,
>
> oldObj = midpoint.getFocusContext().getObjectOld();
> oldValue = basic.getExtensionPropertyValue(oldObj, 'http://namespace',
> 'attribute1);
> return oldValue;
>
> Error:
> No signature of method:
> com.evolveum.midpoint.model.common.expression.functions.BasicExpressionFunctions.getExtensionPropertyValue()
> is applicable for argument types: (com.evolveum.midpoint.prism.PrismObject,
> java.lang.String, java.lang.String)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190129/e89da6de/attachment.htm>
More information about the midPoint
mailing list