<font size=2 face="sans-serif">I realize that &quot;drools&quot; is a
runtime variable, available only during rule execution, but the question
still stands. Is it possible to somehow pass in rule attributes as arguments
to Data loaders for enums?</font>
<br>
<br><font size=2 face="sans-serif">Any help would be appreciated</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">Ghanshyam Patel/Tempe/TotalSystem</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">10/10/2011 03:35 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Guvnor - Loading
enums programatically using rule metadata</font>
<br>
<hr noshade>
<br>
<br><font size=2 face="sans-serif">The Guvnor manual specifies how to load
enum data programtically but it seems like only other fields on the same
Fact can be used to filter the values that can show up in the drop-down
fields, as shown below:</font>
<br>
<br><tt><font size=1 color=#2f2f2f>'Fact.field[dependentField1, dependentField2]'
: '(new com.yourco.DataHelper()).getListOfAges(&quot;@{dependentField1}&quot;,
&quot;@{dependentField2}&quot;)'</font></tt>
<br>
<br><font size=2 face="sans-serif">Is it possible to somehow use other
rule attributes, like package name or rule metadata to filter the list?
Something like the following:</font>
<br>
<br><tt><font size=1 color=#2f2f2f>'Fact.field[dependentField1]' : '(new
com.yourco.DataHelper()).getListOfAges(&quot;@{dependentField1}&quot;,
drools.getRule().getMetaData().get(&quot;ID&quot;))'</font></tt>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">G. Patel</font>
<br>

-----------------------------------------
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