Guvnor only adds fields with "getters" for use in the LHS (and "setters" for use in the RHS).
Ideally the field would be a Java enumeration (that Guvnor would allow use of). Alternatively you can define a "Guvnor enumeration" for the field in question.
Please feel free to raise a JIRA (https://issues.jboss.org/browse/GUVNOR) requesting enhancement for public static fields.
New Issue:My Message class has an int field (status) and several "public static final int" values representing possibile statuses. I am trying to use the directed rules editor to create a rule when clause: There is a Message with status equal to Message.SOME_STATUS.I don't see any way to do this. I can put in a constant value, or a free-form formula - neither is what I want. I tried to use the 'expression' editor, but all I got was an empty drop-down with the directive 'Choose.."Where do I go from here?
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users