Hello, I would like to use type-safe enums in my rules. At the moment I have situation like this:
public class Country { private String name; // getter/setters } rule "Country" when Country ( name == "USA" ) then DO SOMETHING end I would like to have something like this: public enum Country { USA () // list of all countries in the world } and in the rule I would like to do this: rule "Country" when Country ( name == Country.USA ) then DO SOMETHING end Is that possible? Thanks in advance for your help. -- View this message in context: http://drools.46999.n3.nabble.com/How-to-use-type-safe-enums-in-rule-condition-tp4026739.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