PotentialTheft ruleflow-group updates a simple String attribute(potentialTheftRating) as shown below. The next step (checkTheftRating used as an example here) uses the potentialTheftRating in the condition. Note that some of the attributes are list of objects where the update is on the attribute of the contained object in the list.<br>

<br><b><span style="color: rgb(0, 0, 153);">//TheftRating ruleflow-group</span><br style="color: rgb(0, 0, 153);"></b><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule  &quot;Row 1 PotentialTheft.gdst&quot;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    ruleflow-group  &quot;TheftRating&quot;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    lock-on-active true</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    dialect  &quot;mvel&quot;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    when</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">        $car : Vehicle( convertible ==  &quot;true&quot;  )</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    then</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">        System.out.println(&quot; row 1 &quot;);</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">        //$car.setPotentialTheftRating(  &quot;high&quot; );</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">        modify($car){</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">            setPotentialTheftRating(  &quot;high&quot; );</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">        }</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">        //update($car);</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> #from row number: 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule  &quot;Row 2 PotentialTheft.gdst&quot;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    ruleflow-group  &quot;TheftRatinggrp&quot;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    dialect  &quot;mvel&quot;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    when</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">        $car : Vehicle( price &gt;=  &quot;45001&quot; , price &lt;=  &quot;200000&quot; )</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">        $car.setPotentialTheftRating(  &quot;high&quot; );</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">        System.out.println(&quot;row number: 2&quot;); </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span><br style="color: rgb(0, 0, 153);"><br><b><span style="color: rgb(0, 102, 0);">//CheckTheftRating ruleflow-group</span></b><br style="color: rgb(0, 102, 0);">
<br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">rule  &quot;1 CheckTheftRating&quot;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">    ruleflow-group &quot;CheckTheftRating&quot;</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">    salience 100</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">    dialect  &quot;mvel&quot;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">    when</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">        $car : Vehicle( potentialTheftRating ==  &quot;high&quot;  )</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">    then</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">        System.out.println(&quot; CheckTheftRating is true&quot;);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">end</span><br><br>Regards,<br>Ravi<br><br>
<br><div class="gmail_quote">On Wed, Jul 13, 2011 at 8:28 AM, Tihomir Surdilovic <span dir="ltr">&lt;<a href="mailto:tsurdilo@redhat.com">tsurdilo@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
How about show your code and rules and maybe relevant parts of your<br>
process? Would help understand your situation better.  I would think<br>
creating a simple test case that covers your scenario would not take<br>
long to put together.<br>
<br>
Thanks.<br>
<div><div></div><div class="h5">On 7/13/11 11:20 AM, Wishing Carebear wrote:<br>
&gt; Any pointers please!!<br>
&gt;<br>
&gt; On Tuesday, July 12, 2011, Wishing Carebear&lt;<a href="mailto:wishing.carebear@gmail.com">wishing.carebear@gmail.com</a>&gt;  wrote:<br>
&gt;&gt; Any pointers?<br>
&gt;&gt;<br>
&gt;&gt; On Tuesday, July 12, 2011, Wishing Carebear&lt;<a href="mailto:wishing.carebear@gmail.com">wishing.carebear@gmail.com</a>&gt;  wrote:<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt; If I have a ruleflow with a sequence of rule tasks, should an update be called to reflect the state of the fact in the working memory? In another words If all the rules are mutually exclusive within a rule task, will the changes made in first rule task, if used as a condition in the next rule task will be reflected without calling explicit update.<br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks for your time and help.<br>
&gt;&gt;&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<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>
</blockquote></div><br>