<font size=2 face="sans-serif">I need it at rule definition time, or when
the rule is saved. Could you point me to a starting place in the internal
api ?</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">G. Patel</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Mark Proctor &lt;mproctor@codehaus.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">rules-users@lists.jboss.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02/16/2012 10:06 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [rules-users]
Rule definition introspection</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>On 17/02/2012 01:11, </font><a href=mailto:GPatel@tsys.com><font size=3 color=blue><u>GPatel@tsys.com</u></font></a><font size=3>
wrote: </font>
<br><font size=2 face="sans-serif">Is it possible to self-introspect the
rule definition?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
For example:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
when</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;$redCar : Car(color == 'red')</font><font size=3>
</font><font size=2 face="sans-serif"><br>
then</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&quot;a red car exists&quot;);</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Is it possible to know that the above rule uses the Car fact and the Car.color
attribute?</font><font size=3> </font>
<br><font size=3>Yes, but you'll need to dig into internal apis. If you
are doing this at runtime just start introspecting the rule object to get
an idea of all the internal data structures.<br>
<br>
Mark</font>
<br><font size=2 face="sans-serif"><br>
Thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
G. Patel</font><font size=3> -----------------------------------------
The information contained in this communication (including any attachments
hereto) is confidential and is intended solely for the personal and confidential
use of the individual or entity to whom it is addressed. If the reader
of this message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified that you
have received this communication in error and that any review, dissemination,
copying, or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly prohibited.
If you have received this communication in error, please notify us immediately
by e-mail, and delete the original message. Thank you <br>
</font>
<br><tt><font size=3>_______________________________________________<br>
rules-users mailing list<br>
</font></tt><a href="mailto:rules-users@lists.jboss.org"><tt><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><tt><font size=3><br>
</font></tt>
<br><tt><font size=2>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>