[midPoint] ?==?utf-8?q? XSD schema default attribut

Ivan Noris Ivan.Noris at evolveum.com
Wed Feb 28 12:27:39 CET 2018


Hi, 

default value can be easily set using object template mapping for your extension attribute with weak strength. 

e.g. 

<mapping> 
<strength>weak</strength> 
<expression> 
<value>xxx</value> 
</expression> 
<target> 
<path>$user/extension/myattr1</path> 
</target> 
</mapping> 

will set a default value for your extension attribute "myattr1" to "xxx". 

See https://wiki.evolveum.com/display/midPoint/Object+Template to start with object templates, and samples for object templates... 

Best regards, 
Ivan 

----- Original Message -----

> From: "TIPA Sylvaire-Kevin" <sylvaire-kevin.tipa at mythalesgroup.com>
> To: "midPoint General Discussion" <midpoint at lists.evolveum.com>
> Sent: Wednesday, February 28, 2018 10:46:52 AM
> Subject: Re: [midPoint] ?==?utf-8?q? XSD schema default attribut

> Ok, thanks for the confirmation.

> I think that default attribut will be a good feature :). Currently I need to
> add mapping on my extension for set a default value..

> --

> Cordialement.
> -------- Message original --------
> Sujet: Re: [midPoint] XSD schema default attribut
> Date: Mercredi 28 Février 2018 08:50 CET
> De: Pavol Mederly <mederly at evolveum.com>
> Répondre à: midPoint General Discussion <midpoint at lists.evolveum.com>
> Pour: midpoint at lists.evolveum.com
> Références: <52bc-5a95b380-5-76db3e00 at 114523021>

> Hello,

> it's not a bug; it is just not supported.

> MidPoint does not claim to use all features of XSD; it uses only a selected
> subset of them.
> Pavol Mederly
> Software developer
> evolveum.com
> On 27.02.2018 20:38, TIPA Sylvaire-Kevin wrote:

> > Hello,
> 

> > It seems that the attribut "default" do nothing in xsd schema extension...
> > I
> > find nothing about that in Jira.
> 

> > My xsd :
> 
> > <xsd:element name="accessTitle" type="xsd:string" default="Ici les acces
> > iunfomation" >
> 

> > I also try with fixed attribut, but nothing ... Bug ?
> 

> > --
> 

> > Cordialement.
> 
> > _______________________________________________
> 
> > midPoint mailing list midPoint at lists.evolveum.com
> > http://lists.evolveum.com/mailman/listinfo/midpoint
> 

> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Ivan Noris 
Senior Identity Engineer 
evolveum.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180228/7db000d8/attachment.htm>


More information about the midPoint mailing list