<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 31/07/2011 19:39, Wolfgang Laun wrote:
    <blockquote
cite="mid:CANaj1LcLpPfED__ZZYRJrE0TdGv2FG3_8p1E5Zvyz39NbEb-iQ@mail.gmail.com"
      type="cite">2011/7/31 Mark Proctor <span dir="ltr">&lt;<a
          moz-do-not-send="true" href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span><br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="border-left: 1px solid
          rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
          1ex;">
          <div bgcolor="#FFFFFF" text="#000000"> <br>
            <br>
            Implicit mapping I call Managed Object Graphs MOGs. So you
            can write<br>
            Person( address.street == "my road" )<br>
            <br>
            And that internally would get translated too<br>
            $p : Person()<br>
            Address( person == $p, street == "my road" )<br>
            <br>
            As there is no doubt that the current explicit bindings
            approach on objects is too verbose and hard to read. Nested
            accessors add a lot of readability.<br>
            <br>
          </div>
        </blockquote>
        <div><br>
          So what if Address is not an inserted fact? So far, a CE with
          type Foo(...) implied the existence of a fact of that type.
          I'm not sure that inserting some object should imply the
          insertion of all of its descendants as facts as well...<br>
        </div>
      </div>
    </blockquote>
    You don't necessarily have to insert Address. It can attach a
    listener, assuming the pojo supported it, when it's accessed in a
    pattern - allowing the pattern to receive updates from nested
    objects.<br>
    <br>
    Whether something is inserted or not can be annotation driven.
    Something can't be inserted anyway unless it has the necessary
    references for the joins.<br>
    <br>
    I want to look at a full range of MOGs to automate and semi-autimate
    things with regards to nested structures. At the moment there is no
    best practice and DRL (or any other rule language) does not make
    this nice. We ALL suck for compact nested accessors.<br>
    <br>
    Mark<br>
    <blockquote
cite="mid:CANaj1LcLpPfED__ZZYRJrE0TdGv2FG3_8p1E5Zvyz39NbEb-iQ@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>
          <br>
          -W<br>
        </div>
      </div>
      <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>