<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Ana,<br></div><div><br></div><div>how is your extension/newValue attribute defined in schema extension?<br></div><div>Ivan<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Ana Pereyra" <apereyra@identicum.com><br><b>To: </b>midpoint@lists.evolveum.com<br><b>Sent: </b>Tuesday, October 11, 2016 11:01:30 PM<br><b>Subject: </b>[midPoint] Append values to EmployeeType in object template<br><div><br></div><div dir="ltr">Hi everyone! <div><br></div><div>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:</div><div><br></div><div><div>    <mapping></div><div>      <source></div><div>         <c:path>$user/extension/newValue</c:path></div><div>           <name>newValue</name></div><div>        </source></div><div>        <source></div><div>           <c:path>$user/employeeType</c:path></div><div>           <name>employeeType</name></div><div>        </source>       </div><div>        <expression></div><div>           <script></div><div>             <language><a href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy" target="_blank">http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</a></language></div><div>              <code></div><div>                     if (newValue != null)</div><div>                            employeeType.add(newValue);</div><div>          </code><br></div><div><div>           </script></div><div>        </expression></div><div>        <target></div><div>          <path>employeeType</path></div><div>        </target></div><div>     </mapping></div></div><div><br></div><div>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.</div><div><br></div><div>Can anyone help me with this?</div><div>Thanks!</div><br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b style="font-size:12.8px">Ana Pereyra</b><br></div><div dir="ltr"></div></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Ivan Noris<br>Senior Identity Engineer<br>evolveum.com<span name="x"></span><br></div></div></body></html>