[midPoint] Create inbound mapping for a multi-value attribute
Prabhakara Rao Doddapaneni
dp_rao at yahoo.com
Fri Mar 24 16:28:13 CET 2017
My resource is giving a field value as set<String>. I defined a multi-value string attribute in my extension template to be used during synchronization.
Extension template content: <xsd:element name="linkedItems" type="xsd:string" minOccurs="0" maxOccurs="unbounded"> <xsd:annotation> <xsd:appinfo> <a:indexed>true</a:indexed> <a:displayName>Linked Item Ids</a:displayName> <a:displayOrder>130</a:displayOrder> </xsd:appinfo> </xsd:annotation> </xsd:element>
Resource schema definition: <xsd:element maxOccurs="unbounded" minOccurs="0" name="linkedItems" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <a:displayOrder>800</a:displayOrder> <ra:frameworkAttributeName>linkedItems</ra:frameworkAttributeName> </xsd:appinfo> </xsd:annotation> </xsd:element>
schemaHandling: <attribute> <c:ref>ri:linkedItems</c:ref> <tolerant>true</tolerant> <exclusiveStrong>false</exclusiveStrong> <inbound> <authoritative>true</authoritative> <exclusive>false</exclusive> <strength>normal</strength> <target> <c:path>$user/extension/linkedItems</c:path> </target> <condition> <script> <code> !basic.isEmpty(input)</code> </script> </condition> </inbound> </attribute>
When i try to import accounts from this resource, it is failing with an exception java.lang.IllegalArgumentException(Attribute 'linkedItems' type 'class java.util.Collections$EmptySet' is not supported.
Can somebody help me how to map the inbound collection to a multi-value attribute?
Thanks,Prabhakar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170324/7e7d4510/attachment.htm>
More information about the midPoint
mailing list