<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Sorry I misread what you said. I thought you said that beans are
    only usable in the IDE if it has both a getter and a setter - my
    misundestanding.<br>
    <br>
    M<br>
    On 19/12/2011 16:19, Michael Anstis wrote:
    <blockquote
cite="mid:CAAG9P0t0hU=2T3TFAMYEnXw6xY7D2KErvBKS_f7p9FZ8UBrUEA@mail.gmail.com"
      type="cite">I'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't understand "we should only support getters" but "be
      intelligent enough not to allow the setter to be used in the IDE".
      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'll have to change Guvnor
      anyway :)<br>
      <br>
      <div class="gmail_quote">2011/12/19 Mark Proctor <span dir="ltr">&lt;<a
            moz-do-not-send="true" 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'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 "getters" and "setters" 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
                      moz-do-not-send="true"
                      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
                    "Upload POJO Model jar" and annotating it in "New
                    Declarable Mode".<br>
                    <br>
                    1. &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; declare TestPojo<br>
                    2. &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @role(value = event)<br>
                    3. &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; end<br>
                    <br>
                    But if some fields of the POJO class have only
                    getter methods, Guided Rule Editor won't list those
                    fields in "Modify constraints" popup. (if a field
                    has a setter method, it will be listed)<br>
                    <br>
                    public class TestPojo {<br>
                    &nbsp; &nbsp; &nbsp; &nbsp;private String name;<br>
                    &nbsp; &nbsp; &nbsp; &nbsp;public TestPojo() {}<br>
                    &nbsp; &nbsp; &nbsp; &nbsp;public String getName() { return name; }<br>
                    // &nbsp; &nbsp; &nbsp;public void setName(String name) { <a
                      moz-do-not-send="true" href="http://this.name"
                      target="_blank">this.name</a> = name; }<br>
                    }<br>
                    <br>
                    Am I missing something? If it's not an expected
                    behaviour, I will raise a JIRA.<br>
                    <br>
                    Cheers,<br>
                    Toshiya<br>
                    _______________________________________________<br>
                    rules-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:rules-users@lists.jboss.org"
                      target="_blank">rules-users@lists.jboss.org</a><br>
                    <a moz-do-not-send="true"
                      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 moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
            href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>