I've created https://issues.jboss.org/browse/JBRULES-2792 several months ago.

-W


On 2 June 2011 11:40, pagrus <pagrus@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users