[midPoint] Add focus with other object template

Ivan Noris ivan.noris at evolveum.com
Tue Mar 5 10:53:23 CET 2024


Hi Michal,

I believe you need to use like this:

<actions> <addFocus> <objectTemplateRef oid="..."/> </addFocus> </actions>

This is one of things changed in our schema since midPoint 4.6.

Best regards,
Ivan

On 5. 3. 2024 9:33, Michal Sakac via midPoint wrote:
>
> Hi I try to add another than default object template for inbound role 
> mapping like this
>
> <reaction>
>    <name>add</name>
>    <situation>unmatched</situation>
>    <objectTemplateRef oid=„XXXXXx"/>
>    <actions>
>        <addFocus/>
>    </actions>
> </reaction>
> But every time when I try to send it to MP I got error
> Item 
> {http://midpoint.evolveum.com/xml/ns/public/common/common-3}objectTemplateRef 
> has no definition (in value CTD 
> ({.../common/common-3}SynchronizationReactionType))while parsing ( 
> situation => unmatched (class java.lang.String) id => 32 (class 
> java.lang.Long) {...common/common-3}objectTemplateRef => ( oid => 
> parser ValueParser(DOM-less, XXXX, namespace declarations) ) actions 
> => ( addFocus => ( id => parser ValueParser(DOM-less, 35, namespace 
> declarations) ) ) name => add (class java.lang.String) )
>
> Can anyone help me? I don’t know what I'm doing wrong? I found this in 
> samples
>  <reaction>
>                    <situation>unmatched</situation>
>                    <!-- Reference to the User Template is here. If the 
> user would be
>                             created as a result of this action, it 
> will be created according
>                             to this template. -->
>                    <objectTemplateRef 
> oid="c0c010c0-d34d-b33f-f00d-777222222333"/>
>                    <action>
>                        <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser</handlerUri> 
> <http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser%3C/handlerUri%3E>
>                    </action>
>                </reaction>
>
> I have MP 4.8
>
> Thx for help.
>
> Michal Sakac
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Ivan Noris
Expert Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240305/d977ad26/attachment.htm>


More information about the midPoint mailing list