<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">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>