[midPoint] How to set returnType of custom function to an object like AssignmentType?
Alcides Moraes
alcides.neto at gmail.com
Fri Jun 21 00:15:40 CEST 2024
Nevermind! I just figured it out, it is <returnType>c:AssignmentType</returnType> (C instead of T, for namespace common-3 and not types-3)
> Em 20 de jun. de 2024, à(s) 19:13, Alcides Moraes <alcides.neto at gmail.com> escreveu:
>
> Hello list,
>
> I have some code to create complex AssignmentType objects that I want to reuse as a custom function library
>
> However when I try to call a function, I get this error:
>
> Expected class java.lang.String type, but got class com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType in (new) custom function execute….
>
> I have set <returnType> tag of the function as
>
> <returnType>t:AssignmentType</returnType>
>
> I also tried
>
> <returnType>com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType</returnType>
>
> None of this worked. Anything I’m missing ?
> I’m still on Midpoint 4.4.8, by the way.
>
> Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6278 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240620/ec374fa7/attachment-0001.bin>
More information about the midPoint
mailing list