<br>&nbsp;&nbsp;&nbsp; I don&#39;t know about your ruleflow question, but you seems to be missing an update() call that will cause exactly the behavior you are describing:<br><br><font size="2"><p align="left"><em></em></p>
  <p align="left"><em>when</em></p>
  <blockquote dir="ltr" style="margin-right: 0px;">
    <p align="left"><em>cw: ContractWrapper(mycontract.serviceDetail.pronto == 
    &quot;Y&quot;, mycontract.serviceDetail.pronto == &quot;Y&quot;)</em></p></blockquote>
  <p align="left"><em>then</em></p>
  <blockquote dir="ltr" style="margin-right: 0px;">
    <p align="left"><em>cw.setUpronto(Pronto.Y);</em></p><p align="left"><em><span style="font-style: italic;">update( cw ); // &lt;---------</span><br></em></p>
    <p align="left"><em>System.out.println(&quot;PS1&quot;+cw.getMycontract().getId());</em></p></blockquote>
  <p><em>end</em></p></font><br>&nbsp;&nbsp;&nbsp; Without the update call, the LHS of the rules will never see the attribute change. This is expected behavior.<br>&nbsp;&nbsp;&nbsp; The RHS of the rules always see the actual attribute values though, since shadow proxies are only used in LHS.<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2008/2/16, <a href="mailto:mmquelo@gmail.com">mmquelo@gmail.com</a> &lt;<a href="mailto:mmquelo@gmail.com">mmquelo@gmail.com</a>&gt;:</span><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">
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I think I got the point....</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">This is the rule (table generated) which sets the 
&quot;upronto&quot; field.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"><strong>(It&nbsp;should have&nbsp;been fired in a 
previous ruleflow-node)</strong></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<blockquote dir="ltr" style="margin-right: 0px;">
  <div><font size="2">
  <p align="left"><em>package com.rules.ConsolidateData;</em></p>
  <p align="left"><em>#generated from Decision Table</em></p>
  <p align="left"><em>import com.engine.wrappers.ContractWrapper;</em></p>
  <p align="left"><em>import com.engine.enums.Pronto;</em></p>
  <p align="left"><em>#From row number: 13</em></p>
  <p align="left"><em>rule &quot;Pronto_13&quot;</em></p>
  <p align="left"><em><strong><font color="#ff0000">(RULEFLOW GROUP IS 
  MISSING!!!!!)</font></strong></em></p>
  <p align="left"><em></em></p>
  <p align="left"><em>when</em></p>
  <blockquote dir="ltr" style="margin-right: 0px;">
    <p align="left"><em>cw: ContractWrapper(mycontract.serviceDetail.pronto == 
    &quot;Y&quot;, mycontract.serviceDetail.pronto == &quot;Y&quot;)</em></p></blockquote>
  <p align="left"><em>then</em></p>
  <blockquote dir="ltr" style="margin-right: 0px;">
    <p align="left"><em>cw.setUpronto(Pronto.Y);</em></p>
    <p align="left"><em>System.out.println(&quot;PS1&quot;+cw.getMycontract().getId());</em></p></blockquote>
  <p><em>end</em></p></font></div></blockquote>
<div><font face="Arial" size="2">I think I DEFINED &quot;THE RULEFLOW-GROUP&quot; IN THE WRONG 
WAY&nbsp; in the .xls table!!!</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"><strong>So, I think... the </strong><em><font face="Times New Roman">Pronto_13 </font></em><strong>rule has been fired after 
the <em>ScorePronto </em>rule.</strong></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I tell you how I defined it....</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">In the same column where I have &quot;Ruleset&quot;, &quot;Import&quot; 
and&nbsp;&quot;Variables&quot; I put &quot;RULEFLOW-GROUP&quot; as well...it is as 
follows:</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">|Ruleset&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;| ... 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; |</font></div>
<div><font face="Arial" size="2">|Import&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ...import ... 
ContractWrapper...|</font></div>
<div><font face="Arial" size="2">|Variables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;| ... &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; |</font></div>
<div><font face="Arial" size="2">|RULEFLOW-GROUP&nbsp;&nbsp; |&nbsp;Scoring 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- 
HERE!</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Is it correct?</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I thought this is what was meant in <a href="http://jira.jboss.com/jira/browse/JBRULES-1077" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jira.jboss.com/jira/browse/JBRULES-1077</a></font></div>

<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">In case this were not the problem I really would 
not know what to do.... now I go to sleep... here in rome is quite 
late!</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I hope tomorrow to work it out.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Thank You for your Help Edson!</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Buona notte.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Massi</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div>&quot;Edson Tirelli&quot; &lt;<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>&gt; ha scritto nel 
  messaggio <a href="news:e6dd5ba30802161533m1d6e035cq9e12dd1b148fa71@mail.gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">news:e6dd5ba30802161533m1d6e035cq9e12dd1b148fa71@mail.gmail.com</a>...</div>
<div><span class="e" id="q_11824d36f62e0a91_1"><br>&nbsp;&nbsp; 
  Need to see the full test case to be able to understand if it is a bug or not, 
  because the expression in the LHS is using the ShadowProxy, while the one in 
  the RHS is not... so, it may be a bug or it may not... depends when and how 
  you are setting the upronto field.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; 
  Edson<br><br><br>
  <div><span class="gmail_quote">2008/2/16, <a href="mailto:mmquelo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mmquelo@gmail.com</a> &lt;<a href="mailto:mmquelo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mmquelo@gmail.com</a>&gt;:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Look at this....</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">I have got a &quot;ContractWrapper&quot; fact inserted 
    into WM.</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">It wraps a &quot;Contract&quot; object and some &quot;enums&quot; 
    fields.</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">One of these fields is &quot;upronto&quot;:</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <blockquote dir="ltr" style="margin-right: 0px;">
      <div><font face="Arial" size="2"><b><font color="#7f0055" size="2">
      <p align="left">public</p></font></b></font><font size="2"></font><b><font color="#7f0055" size="2">class</font></b><font size="2"> ContractWrapper 
      </font><b><font color="#7f0055" size="2">extends</font></b><font size="2"> 
      BaseOmPersistentWithAssignedId{ 
      <p align="left">Contract </p></font><font color="#0000c0" size="2">mycontract</font><font size="2">=</font><b><font color="#7f0055" size="2">null</font></b><font size="2">; 
      </font><p align="left"></p>
<font size="2">      </font><p align="left"><font size="2">...</font></p>
<font size="2">      </font><p align="left"></p><font size="2">Pronto </font><font color="#0000c0" size="2">upronto</font><font size="2"> = </font><b><font color="#7f0055" size="2">null</font></b><font size="2">; 
      <p align="left"><strong><font color="#7f0055">...</font></strong></p></font><font size="2">
      <p align="left"></p>
      <p align="left"><em>&lt;getters and setters....&gt;</em></p></font><font size="2"></font><font size="2">
      <p align="left"></p>
      <p align="left"></p>
      <p align="left"></p>
      <p align="left"></p>
      <p>...</p>
      <p>}</p></font></div></blockquote>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">&quot;upronto&quot; is an insance of a &quot;Pronto&quot; java 
    enum:</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <blockquote dir="ltr" style="margin-right: 0px;">
      <div><b><font color="#7f0055" size="2">
      <p align="left">public</p></font></b><font size="2"></font><b><font color="#7f0055" size="2">enum</font></b><font size="2"> Pronto {</font><i><font color="#0000c0" size="2"> 
      <p align="left">N</p></font></i><font size="2">,</font><i><font color="#0000c0" size="2"> 
      <p align="left">UNKNOWN</p></font></i><font size="2">,</font><i><font color="#0000c0" size="2"> 
      <p align="left">Y</p></font></i><font size="2">; 
      <p align="left">}</p></font></div></blockquote>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">&quot;Pronto&quot; can be : (Y, N, UNKNOWN)</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Here is the rule which reasons over this 
    enum:</font></div>
    <div><font face="Arial" size="2">(ofcourse I have got a Request into WM as 
    well)</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><em>rule &quot;ScorePronto&quot;<br>dialect 
    &quot;mvel&quot;<br>ruleflow-group &quot;Scoring&quot;<br>&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    $r:Request( $mc:mainContract != null )<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    $cw_p:ContractWrapper($c_w_p:mycontract == $mc, eval(upronto != 
    Pronto.Y))</em></font></div>
    <div><font face="Arial" size="2"><em>&nbsp;then&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    System.out.println(&quot;Test Result: &quot;+($cw_p.upronto == 
    Pronto.Y))&nbsp;&nbsp;<br>end</em></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Any guesses for the output???</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Well....</font></div>
    <div><font face="Arial" size="2"></font><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><strong>Test Result: true</strong></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">HOW COMES???????????????????</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">I mean ... the test &quot;eval(upronto != Pronto.Y)&quot; 
    returned &quot;true&quot;.... It means that the rule</font></div>
    <div><font face="Arial" size="2">engine sees upronto &lt;&gt; Pronto.Y!, doesn&#39;t 
    it??!!!!</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><strong>So... why do I get &quot;upronto == 
    Pronto.Y&quot; in the RHS????</strong></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">What 
    the.........&amp;$%%&amp;()%%$/%�....sorry....but having these</font></div>
    <div><font face="Arial" size="2">kind of problems during saturday night is not 
    so pleaseant!&nbsp; </font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">T-T</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">I really hope you can help me&nbsp;with a 
    &nbsp;workaround to this issue.</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Bye</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Massi</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"></font>&nbsp;</div></div><br>_______________________________________________<br>rules-users 
    mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools 
  Core Development<br>&nbsp;&nbsp;Office: +55 11 
  3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a 
  division of Red Hat @ <a href="http://www.jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a> 
  </span></div><p>
  </p><hr><span class="q">

  <p></p>_______________________________________________<br>rules-users mailing 
  list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</span><p></p></blockquote></div>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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 clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>