[midPoint] Append assignments to previous user assignments
Pavol Mederly
mederly at evolveum.com
Thu Feb 9 21:11:01 CET 2017
Exactly. Inbound mappings are quite limited in functionality. It is
generally advisable to use object templates. With new powerful features
like mapping domain (3.5.1+) and range (3.6+, with basic support already
in 3.5) one can fine-tune the mapping behavior: which values to tolerate
and which to replace.
Please see
https://wiki.evolveum.com/display/midPoint/Mapping#Mapping-MappingDomain
and below.
Pavol Mederly
Software developer
evolveum.com
On 09.02.2017 21:01, Mikko Pekkarinen wrote:
>
> Hello,
>
>
> I've had the same problem. I worked around it by not creating any
> assignments in the inbound mappings. Instead, I stored the relevant
> parameters in user's fields (organization in my case), and created the
> assignment in user template.
>
>
> Mikko
>
>
>
> ------------------------------------------------------------------------
> *Lähettäjä:* midPoint <midpoint-bounces at lists.evolveum.com> käyttäjän
> puolestaRodrigo Yanis <ryanis at identicum.com>
> *Lähetetty:* 9. helmikuuta 2017 21:50
> *Vastaanottaja:* midPoint General Discussion
> *Aihe:* [midPoint] Append assignments to previous user assignments
> Hello everyone,
>
> I'm having issues keeping the user's previous assignments when a
> resource inbound mapping calculates and sets a list of assignments to
> that user.
>
> I've already tried with tolerant setting on the mapping (set to true),
> but it still removes the old assignments and inserts the new,
> calculated ones.
>
> Simplified inbound mapping look like this:
>
> <inbound>
> <expression>
> <script>
> <code>
> assignmentList = [];
> ...
>
> assignmentList,add(assignment);
>
> ...return assignmentList;
> </code>
> </script>
> </expression>
> <target>
> <c:path>assignment</c:path>
> </target>
> </inbound>
>
>
> Do you know any setting I could try out so already present assignments
> are not removed?
>
> Thanks,
>
> *Rodrigo Yanis.*
> Identicum S.A.
> Jorge Newbery 3226
> Tel: +54 (11) 4824-9971
> ryanis at identicum.com <mailto:ryanis at identicum.com>
> www.identicum.com <http://www.identicum.com/>
>
>
> _______________________________________________
> 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/20170209/4c8c53bb/attachment.htm>
More information about the midPoint
mailing list