[rules-users] Store a Map in Country Enumeration

Michael Anstis michael.anstis at gmail.com
Tue Dec 13 11:13:13 EST 2011


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 <srinivasasanda at gmail.com> 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,JAPAN....etc....in 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111213/4e6b3d5f/attachment.html 


More information about the rules-users mailing list