[midPoint] Append values to EmployeeType in object template

Ivan Noris Ivan.Noris at evolveum.com
Wed Oct 12 09:56:19 CEST 2016


Hi Ana, 

how is your extension/newValue attribute defined in schema extension? 
Ivan 

----- Original Message -----

> From: "Ana Pereyra" <apereyra at identicum.com>
> To: midpoint at lists.evolveum.com
> Sent: Tuesday, October 11, 2016 11:01:30 PM
> Subject: [midPoint] Append values to EmployeeType in object template

> Hi everyone!

> I'm experiencing some trouble trying to update a user's employeeType
> attribute using the object template. Here is what I would like the object
> template to do:

> <mapping>
> <source>
> <c:path>$user/extension/newValue</c:path>
> <name>newValue</name>
> </source>
> <source>
> <c:path>$user/employeeType</c:path>
> <name>employeeType</name>
> </source>
> <expression>
> <script>
> <language>
> http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy
> </language>
> <code>
> if (newValue != null)
> employeeType.add(newValue);
> </code>
> </script>
> </expression>
> <target>
> <path>employeeType</path>
> </target>
> </mapping>

> The problem is that the value I get in the mapping of the employeeType is a
> string (the first one of the employeeType values), not a list, so I can not
> append values to it.

> Can anyone help me with this?
> Thanks!

> Ana Pereyra

> _______________________________________________
> 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/20161012/16c8805a/attachment.htm>


More information about the midPoint mailing list