Is &#39;modified&#39; a boolean field?<div>If so as it seems, i think you should write:</div><div><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &#39;Courier New&#39;; color: black; ">A( modified == </span></font><font size="2" color="green" face="Courier New"><span style="font-size: 10pt; font-family: &#39;Courier New&#39;; color: green; ">false</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &#39;Courier New&#39;; color: black; "> )  </span></font></div>
<div><br></div><div>(no quotes)</div><div><br></div><div>Regards.</div><div><br><div class="gmail_quote">2010/6/15 Fnu Mahalakshmi <span dir="ltr">&lt;<a href="mailto:FMahalakshmi@nyx.com">FMahalakshmi@nyx.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi guys,</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have few .drl rules and 1 .brl rule (which I converted
into a .drl rule as guided by the documentation online)</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">All my rules get created and fired. But the converted .brl
rule does not get executed only.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I am unable to understand why.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Anyway I can check how it is working??</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I put in the most basic rule which should work:</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">The coverted .drl file looks like this:</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">rule</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;Rule3&quot;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">dialect</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;mvel&quot;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">when</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            a
: A( modified == </span></font><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;false&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> )</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">then</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            a.setModified(
</span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">true</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> );</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            </span></font><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">update</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">( a );</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">end</span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold"> </span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">// A being my fact with attribute modified set to false in the beginning.</span></font></b></p>


<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold"> </span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">The import statements are in a rule.package in the same folder.</span></font></b></p>


<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold"> </span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">Please help me. I do not understand why this rule doesn’t get
executed. All others do!</span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold"> </span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">Thanks</span></font></b></p>

<p class="MsoNormal"><b><font size="2" color="#960000" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000;font-weight:bold">M</span></font></b></p>

</div>

<pre></pre>

<p></p><hr size="1"><p></p>
<p><strong><font color="green">Please consider the environment before printing this email.</font></strong></p>
<p><strong>Visit our website at <a href="http://www.nyse.com" target="_blank">http://www.nyse.com</a> <br>

*****************************************************************************
<br>
Note:  The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system.  Thank you.  NYSE Euronext.

</strong></p><pre></pre></div>


<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>
<br></blockquote></div><br></div>