Guvnor only adds fields with &quot;getters&quot; for use in the LHS (and &quot;setters&quot; 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 &quot;Guvnor enumeration&quot; 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">&lt;<a href="mailto:ronalbury@gmail.com" target="_blank">ronalbury@gmail.com</a>&gt;</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 &quot;public static final int&quot; 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&#39;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 &#39;expression&#39; editor, but all I got was an empty drop-down with the directive &#39;Choose..&quot;</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>