[rules-users] Store a Map in Country Enumeration
Yes Manstis,U r right..The war file version you specified has no issues with it.It is being automatically refreshed.Thank you so much for your advice and suggestions.You people helping our drools semi-beginners a lot.Thank you once again. -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3585233.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
No, I'd encourage you to try 5.3.0.Final first. There were fixes in the area you are experiencing the issue. On 14 December 2011 08:46, srinivasasanda wrote: > I'm using Guvnor 5.3.0 CR1.Should i raise JIRA?? > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584844.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
I'm using Guvnor 5.3.0 CR1.Should i raise JIRA?? -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584844.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
What version of Guvnor are you using? Can you try with 5.3.0.Final? If the problem remains can you raise a GUVNOR JIRA with a self contained test and repository export? sent on the move On 14 Dec 2011 06:41, "srinivasasanda" wrote: > Hi Manstis, > > I created enumeration for states and countries as > 'Address.country':(new com.sample.DataList()).getMyCountriesList() > 'Address.state[country]' : '(new > com.sample.DataList()).getStateList("@{country}")' > > It is showing drop-down list in guided rule editor for countries as > US,UK,INDIA > > And when I select state it is also successfuly displaying basedon country.. > > Suppose if I selected country US..states are being displayed based on US. > > But if i changed my selection of country US to UK..states drop-down list is > not getting refreshed.Guided editor showing same as Newyork,Washington > etc...It is displaying UK countries only when I clicked on Newyork(states > drop-down list).It means *I mean to say automatic refreshment is not being > done* http://drools.46999.n3.nabble.com/file/n3584640/Capture1.png > http://drools.46999.n3.nabble.com/file/n3584640/Capture2.png > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584640.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Store a Map in Country Enumeration
Hi Manstis, I created enumeration for states and countries as 'Address.country':(new com.sample.DataList()).getMyCountriesList() 'Address.state[country]' : '(new com.sample.DataList()).getStateList("@{country}")' It is showing drop-down list in guided rule editor for countries as US,UK,INDIA And when I select state it is also successfuly displaying basedon country.. Suppose if I selected country US..states are being displayed based on US. But if i changed my selection of country US to UK..states drop-down list is not getting refreshed.Guided editor showing same as Newyork,Washington etc...It is displaying UK countries only when I clicked on Newyork(states drop-down list).It means *I mean to say automatic refreshment is not being done* http://drools.46999.n3.nabble.com/file/n3584640/Capture1.png http://drools.46999.n3.nabble.com/file/n3584640/Capture2.png -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584640.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
I solved the problem.I concatenated Country Id and Country name with = sign in between so it became A01=USA,A02=UK.and this list Iam passing to Guvnor.In that guvnor,USA UK is being displayed in GUI where A01,A02 are being used as backend. Now to retrieve states when Iam passing countryname internally A01,A02 is being passed where in states table it is matching with the country ID's and states are retrieved.Finally,Its worked -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3584496.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Store a Map in Country Enumeration
You *should* be able to have your backend service return values as "display=value". TBH, I've not tried it personally but the internal mechanics should be the same. I'd be interested in your feedback so we can schedule improvements if necessary. On 13 December 2011 13:10, srinivasasanda wrote: > Hi, > I have a declarative model with a fact named Person with > field*(country,state)* > > I have seen in guvnor documentation that > 'Board.type':['short','long','NN=MIn Mal'] > > Min Mal will be displayed in GUI where as NN will be used backend > > In the sameway,I need to use country ids instead of countrynames in > backend > where countryname should displayed at GUI.How I can do this?please suggest > me.. > 'Person.country':(new com.sample.DropDownList()).loadCountriesList()- > > Countries are succesfully loaded---US,UK,JAPANetcin dropdown list > Now I should use different IDs for these different countries in backend. > > In the above enumeration I should use different Ids for different > countries > in backend(rule)..How can I do this > > Please suggest me.Please How can I achieve > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Store a Map in Country Enumeration
Hi, I have a declarative model with a fact named Person with field*(country,state)* I have seen in guvnor documentation that 'Board.type':['short','long','NN=MIn Mal'] Min Mal will be displayed in GUI where as NN will be used backend In the sameway,I need to use country ids instead of countrynames in backend where countryname should displayed at GUI.How I can do this?please suggest me.. 'Person.country':(new com.sample.DropDownList()).loadCountriesList()- Countries are succesfully loaded---US,UK,JAPANetcin dropdown list Now I should use different IDs for these different countries in backend. In the above enumeration I should use different Ids for different countries in backend(rule)..How can I do this Please suggest me.Please How can I achieve -- View this message in context: http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users