You are not mistaken.<br><br>For POJO models we use reflection (class.getMethods) to determine whether a Type&#39;s methods members are available in the LHS or RHS or both, according to Java Bean conventions. Declarative models have their members available in both the LHS and RHS by default as we generate &quot;getters&quot; and &quot;setters&quot; for them.<br>
<br><div class="gmail_quote">On 19 December 2011 05:47, Toshiya Kobayashi <span dir="ltr">&lt;<a href="mailto:tkobayas@redhat.com">tkobayas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
In Guvnor 5.3.0, I can use CEP feature support in Guided Rule Editor after uploading a class by &quot;Upload POJO Model jar&quot; and annotating it in &quot;New Declarable Mode&quot;.<br>
<br>
1.      |       declare TestPojo<br>
2.      |           @role(value = event)<br>
3.      |       end<br>
<br>
But if some fields of the POJO class have only getter methods, Guided Rule Editor won&#39;t list those fields in &quot;Modify constraints&quot; popup. (if a field has a setter method, it will be listed)<br>
<br>
public class TestPojo {<br>
        private String name;<br>
        public TestPojo() {}<br>
        public String getName() { return name; }<br>
//      public void setName(String name) { <a href="http://this.name" target="_blank">this.name</a> = name; }<br>
}<br>
<br>
Am I missing something? If it&#39;s not an expected behaviour, I will raise a JIRA.<br>
<br>
Cheers,<br>
Toshiya<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</blockquote></div><br>