[midPoint] How to send the current time into a resource attribute everytime when the account is updated or created?
Ivan Noris
ivan.noris at evolveum.com
Thu Mar 9 08:22:57 CET 2017
Hi,
sorry, sent too fast:
technically, you could have schema handling mapping like this:
<attribute>
<c:ref>ri:yourAttribute</c:ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>
Date now = new Date();
return
com.evolveum.midpoint.util.MiscUtil.asXMLGregorianCalendar(now);
</code>
</script>
</expression>
</outbound>
</attribute>
But a better solution is to have the database automatically update that
field whenever the row changes in the DB. Because, midPoint might not be
the single tool which changes the DB.
Ivan
On 03/09/2017 03:17 AM, Prabhakara Rao Doddapaneni wrote:
> I am looking for the way to update the changelogcolumn with current
> timestamp as when an account is created or updated in the resource. I
> could not find the solution in documentation. Can somebody help me
> how to do it?
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
--
Ivan Noris
Senior Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170309/1ea0a217/attachment.htm>
More information about the midPoint
mailing list