I&#39;ve created <a href="https://issues.jboss.org/browse/JBRULES-2792">https://issues.jboss.org/browse/JBRULES-2792</a> several months ago.<br><br>-W<br><br><br><div class="gmail_quote">On 2 June 2011 11:40, pagrus <span dir="ltr">&lt;<a href="mailto:pagrus@gmail.com">pagrus@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I&#39;m exploring declared fact metadata capabilities, hoping that it will<br>
enable declaring validation constraints.<br>
<br>
One thing I cant find in both docs and API is the way to introspect the<br>
metadata of certain declared fact type.<br>
<br>
E.g, given the example from Drools Expert docs<br>
<br>
declare Person<br>
    @author( Bob )<br>
    @dateOfCreation( 01-Feb-2009 )<br>
<br>
    name : String @key @maxLength( 30 )<br>
    dateOfBirth : Date<br>
    address : Address<br>
end<br>
<br>
... is it possible to determine programmatically what metadata is associated<br>
with Person&#39;s attributes? Or more specifically - determine that &quot;name&quot; field<br>
has &quot;maxLength(30)&quot; metadata associated?<br>
<br>
<br>
Thanks,<br>
Pavel<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Declared-fact-metadata-tp3014454p3014454.html" target="_blank">http://drools.46999.n3.nabble.com/Declared-fact-metadata-tp3014454p3014454.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>