Please read the documentation: <a href="http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html_single/index.html#d0e1472">http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html_single/index.html#d0e1472</a><div>
There is a section about enumerations that explains your case.</div><div><br></div><div>Best Regards<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Mon, Dec 12, 2011 at 8:44 AM, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The concept was..<br>
<br>
I have one Model with fact named *Person*---with *country,state* as fields..<br>
<br>
I need to create enumeration for country and state which should be load<br>
dynamically.<br>
<br>
Here is my enumeration code<br>
<br>
'Person.country' : (new com.sample.DataList()).getMycountriesList()<br>
<br>
Now,Its working fine..The countries list was succesfully loading in rule<br>
diplaying as drop-down list.But If i select *US* in one of the<br>
list-box,*states* must be displayed dynamically.<br>
<br>
'Address.state[country=USA]' : (new com.sample.DataList()).getMyUSList().<br>
<br>
But,If i have 100 countries It is not good way to write 100 times this code<br>
specifying country=....<br>
'Address.state[country=UK]' : (new com.sample.DataList()).getMyUKList()<br>
'Address.state[country=Australia]' : (new<br>
com.sample.DataList()).getMyAustraliaList()<br>
........<br>
......<br>
.......etc<br>
<br>
How can I achieve dynamically..When I click USA in drop-down box.State list<br>
must be displayed.How can I achieve this..Please suggest me<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Dependency-Enumeration-List-in-Drools-tp3578864p3578864.html" target="_blank">http://drools.46999.n3.nabble.com/Dependency-Enumeration-List-in-Drools-tp3578864p3578864.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></span></blockquote></div><br></div>