[rules-users] Declared fact metadata
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Jun 2 13:41:55 EDT 2011
I've created https://issues.jboss.org/browse/JBRULES-2792 several months
ago.
-W
On 2 June 2011 11:40, pagrus <pagrus at gmail.com> wrote:
> Hi,
>
> I'm exploring declared fact metadata capabilities, hoping that it will
> enable declaring validation constraints.
>
> One thing I cant find in both docs and API is the way to introspect the
> metadata of certain declared fact type.
>
> E.g, given the example from Drools Expert docs
>
> declare Person
> @author( Bob )
> @dateOfCreation( 01-Feb-2009 )
>
> name : String @key @maxLength( 30 )
> dateOfBirth : Date
> address : Address
> end
>
> ... is it possible to determine programmatically what metadata is
> associated
> with Person's attributes? Or more specifically - determine that "name"
> field
> has "maxLength(30)" metadata associated?
>
>
> Thanks,
> Pavel
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Declared-fact-metadata-tp3014454p3014454.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110602/92e5dadf/attachment.html
More information about the rules-users
mailing list