<div>Problem is Customer & CustomerDetail are not related. Is there any work around? Also I looked at the rete tree for matches using Jared Davis's mail , this also results in the same identical structure as with | or in.</div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Nov 18, 2009 at 11:18 AM, Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">2009/11/18 Lindy hagan <<a href="mailto:lindyhagan@gmail.com">lindyhagan@gmail.com</a>>:<br>
<div class="im">><br>><br>> Adding to my initial question , based on the condition satisfied how can I<br>> set a variable to "Y"in a different object (Other than<br>> customer)?customerDetail is not static.<br>
> rule "Age Factor"<br>> when<br>> m : Customer( age matches "18,21,33,28,40,41")<br>> then<br>> System.out.println("Customer falls in age group ");<br>
> // doAgeTasks();<br>> customerDetail.setFallsInAgeGroup("Y"); -- Need to do something like this.How can I do this?<br>> end<br><br></div>There must be some link between a customer's Customer and CustomerDetail facts.<br>
<br>when<br> $m : Customer( $id : id, age matches "18,21,33,28,40,41")<br> $d : CustomerDetail( id == $id )<br>then<br> $d.setFallsInAgeGroup("Y");<br><font color="#888888"><br>-W<br></font>
<div>
<div></div>
<div class="h5"><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>
</div></div></blockquote></div><br>