I&#39;m not clear on what you are saying.<br><br>We reflect the methods of existing beans:-<br><ul><li>If the member has a getter it is available in the LHS</li><li>If the member has a setter it is available in the RHS</li>
<li>If the member has a getter and a setter it is available in both the LHS and RHS</li></ul>Members of declared types are available in both the LHS and RHS
(as we implicitly create getters and setters).<br><br>I don&#39;t understand &quot;we should only support getters&quot; but &quot;be intelligent enough not to allow the setter to be used in the IDE&quot;. If we only support getters there is no setter; and if there is no setter how do we allow the user to set the value? Of course my comments are from a Guvnor perspective, if you mean to change the way declared types work, then... well, we&#39;ll have to change Guvnor anyway :)<br>

<br><div class="gmail_quote">2011/12/19 Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    On 19/12/2011 16:04, Michael Anstis wrote:
    <blockquote type="cite">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>
    </blockquote></div>
    It probably looks like we should support only getters though, for
    existing beans. We just need to be intelligent enough not to allow
    the setter to be used in the IDE.<br>
    <br>
    Toshiya: Sounds like a great introduction task, you up for the
    challenge?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Mark</font></span><div class="im"><br>
    <blockquote type="cite">
      <br>
      <div class="gmail_quote">On 19 December 2011 05:47, Toshiya
        Kobayashi <span dir="ltr">&lt;<a href="mailto:tkobayas@redhat.com" target="_blank">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" 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>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </div></div>

<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>
<br></blockquote></div><br>