<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Did you notify the engine that your data has been updated?<div><br></div><div>http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436</div><div><br></div><div>See section 3.3.3.1.3<br><br>--- On <b>Fri, 2/25/11, Jon Gil <i>&lt;jonsprogrammingemail@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jon Gil &lt;jonsprogrammingemail@gmail.com&gt;<br>Subject: [rules-users] Object updated as rules are running<br>To: rules-users@lists.jboss.org<br>Date: Friday, February 25, 2011, 9:16 AM<br><br><div id="yiv1679233125"><div>Hi, I have a very simple rules flow that I am getting odd results from.&nbsp;&nbsp;For now, our project is planning on using&nbsp;spreadsheets&nbsp;&nbsp;and a drools server.</div>
<div>&nbsp;</div>
<div>The test project we are working on accepts&nbsp;a movie name&nbsp;from an external source and creates a Movie&nbsp;object that is passed to the rules.&nbsp;&nbsp; The first rule looks at the movieName attribute and assigns it a movieStar using the Movie objects setMovieStar call.&nbsp; We have printLn statements before and after this action to confirm that it does in fact work.&nbsp; </div>

<div>&nbsp;</div>
<div>The second rule, where things go wrong, checks the MovieStar attribute, but no matter what we've just set it to, it always uses the value ("NoStarYet")&nbsp;that was originally created when we create the Movie object in our Java code in the condition of our second rule.&nbsp; We've tried using the getMovieStar call in the condition, but it has been throwing errors when we startup the Drools Server.</div>

<div>&nbsp;</div>
<div>When we retreive the Movie object from the resultSet, the movieStar attribute is set correclty, but we can't get our flow to go as expected.&nbsp; </div>
<div>&nbsp;</div>
<div>This really seems like a simple issue, but we've had no luck with it.&nbsp; Any thoughts?&nbsp; Does the rules engine use the getter methods for conditions or does it use the values from the entityXML we pass in?&nbsp; Is there a way to make the engine update the object between running each rule?&nbsp; </div>

<div>&nbsp;</div>
<div>Any help is appreciated greatly.</div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=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></blockquote></div></td></tr></table><br>