Glad to hear that you've managed to solve! Regards.
On 2024/07/14 16:44:36 "Bergmann, Clemens" wrote: > Hi, > > I am currently working on a source with the csvdir connid connector but I > have troubles mapping multiple external attributes to one internal attribute. > > There are two different use cases that I both can’t get to work. > > 1. In use one case the source is delivering multiple values of the same > kind in different attributes (let’s say “name1”, “name2”, “name3”) that I > want to map to multiple values in one internal attribute. > 2. The other use case is combining the values of multiple attributes > (let’s say “street”, “zipcode”, “city”) into one value of one internal > attribute “address” in the form “street + ‘;’ zipcode + ‘;’ + city ”. > > > > It seems that JEXL [1] or other ItemTransformers [2] can only access the > values of the mapped source attribute and all attributes of the internal > EntityTO but not other external attributes. > > I also tried to add multiple mapping rules with the same internal attribute > but different external ones. That seems to work on the first reconciliation > and the internal attribute has multiple values but on the second > reconciliation all but one are deleted. > > > > I know that a mapping like this would be hard to do in reverse but in this > case we only pull from the source so this would be no practical problem. > Nevertheless this could be the reason why this is not easy from a conceptual > point of view. > > > > The only other way I can think about is mapping the values one on one and > then combining the values with a derived attribute after importing. This > however would result in duplicate attributes which I would prefer to not do. > > > > Is there another way? > > > > [1] > https://github.com/apache/syncope/blob/master/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/JEXLItemTransformerImpl.java#L178 > > [2] > https://github.com/apache/syncope/blob/master/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java#L63 > > > > Mit freundlichen Grüßen > > Clemens (Bergmann) > > > > -- > > Clemens Bergmann > > [er/ihm; he/him] > > Gruppe Nutzermanagement und Entwicklung > > Technische Universität Darmstadt > > Hochschulrechenzentrum, Alexanderstraße 2, 64283 Darmstadt > > Tel. +49 6151 16 71184 > > <http://www.hrz.tu-darmstadt.de/> http://www.hrz.tu-darmstadt.de/ > > > >