<p>I thought I had already replied, but...... anyway, why not have one rule create new facts containing the necessary rule attributes in their RHS that are inserted into WM. Your other rules could then use these facts&#39; fields for the Enum loader... </p>

<p>sent on the move</p>
<p>On 12 Oct 2011 18:22,  &lt;<a href="mailto:GPatel@tsys.com">GPatel@tsys.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif">I suppose I can use the standaloneEditor,
add my data loader arguments to the URL, have a filter on the serverside
set up a thread-local context that contains the arguments and have the
data loaders use that context.</font>
<br>
<br><font size="2" face="sans-serif">How do I disable enum caching so that
the above approach works?</font>
<br>
<br>
<br>
<br>
<br>
<br><font size="1" color="#5f5f5f" face="sans-serif">From:      
 </font><font size="1" face="sans-serif">Ghanshyam Patel/Tempe/TotalSystem</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif"><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:      
 </font><font size="1" face="sans-serif">10/11/2011 05:05 PM</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:    
   </font><font size="1" face="sans-serif">Re: Guvnor -
Loading enums programatically using rule metadata</font>
<br>
<hr noshade>
<br>
<br><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>
<br><font size="1" color="#5f5f5f" face="sans-serif">From:      
 </font><font size="1" face="sans-serif">Ghanshyam Patel/Tempe/TotalSystem</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif"><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:      
 </font><font size="1" face="sans-serif">10/10/2011 03:35 PM</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:    
   </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">&#39;Fact.field[dependentField1, dependentField2]&#39;
: &#39;(new com.yourco.DataHelper()).getListOfAges(&quot;@{dependentField1}&quot;,
&quot;@{dependentField2}&quot;)&#39;</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">&#39;Fact.field[dependentField1]&#39; : &#39;(new
com.yourco.DataHelper()).getListOfAges(&quot;@{dependentField1}&quot;,
drools.getRule().getMetaData().get(&quot;ID&quot;))&#39;</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 <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>
<br></blockquote></p>