Guvnor only adds fields with "getters" for use in the LHS (and "setters" for use in the RHS).<br><br>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.<br>
<br>Please feel free to raise a JIRA (<a href="https://issues.jboss.org/browse/GUVNOR" target="_blank">https://issues.jboss.org/browse/GUVNOR</a>) requesting enhancement for public static fields.<br><br><div class="gmail_quote">
2011/11/25 Ronald Albury <span dir="ltr"><<a href="mailto:ronalbury@gmail.com" target="_blank">ronalbury@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">New Issue:<div><br></div><div>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.</div>
<div><br></div><div>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.."</div>
<div><br></div><div>Where do I go from here?</div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br>