<br> No, I did not had this problem before. Can you please open a JIRA and add a self contained test to reproduce the problem? <br><br> Thanks,<br> Edson<br><br><div class="gmail_quote">2008/4/9 mmquelo massi <<a href="mailto:mmquelo@gmail.com">mmquelo@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div> </div>
<div>Hi there!</div>
<div> </div>
<div>I am using a svn-built version of drools-core.jar and drools-decisiontable.jar runtime lib (3rd March 2008).</div>
<div> </div>
<div>I have got the following "Decision table" generated row:</div>
<div> </div>
<div><font size="2">
<blockquote dir="ltr" style="margin-right: 0px;">
<p align="left"><i>#From row number: 25</i></p>
<p align="left"><i>rule "Otherwise_25"</i></p>
<p align="left"><i></i></p>
<p align="left"><i>no-loop true</i></p>
<p align="left"><i>ruleflow-group "Convert"</i></p>
<p align="left"><i>when</i></p>
<p align="left"><i> cw:ContractWrapper(<a href="http://mycontract.serviceDetail.name" target="_blank">mycontract.serviceDetail.name</a> <b>not</b> in ("STRING 1", "STRING 2", "STRING 3", "STRING 4", "STRING 5", null))</i></p>
<p align="left"><i>then</i></p>
<p align="left"><i> ...</i></p>
<p><i>end</i></p></blockquote>
<p> The point is... despite of a ContractWrapper fact that DOES NOT encapsulate a</p>
<p> nested 'name' whose value is in the above set, the rule does not fire anyway.</p>
<p>For instance, if i have got a fact (in working memory) cw1 of class ContractWrapper with <a href="http://cw1.mycontract.serviceDetail.name" target="_blank">cw1.mycontract.serviceDetail.name</a> = "<i>STRING </i>6",</p>
<p>i expect the rule "Otherwise_25" to fire BUT IT ACTUALLY DOES NOT!</p>
<p>Furthermore if i omit the 'not' operator and i insert a fact cw2 with <a href="http://cw2.mycontract.serviceDetail.name" target="_blank">cw2.mycontract.serviceDetail.name</a> = "<i>STRING </i>2",</p>
<p>the RULE DOES fire!</p>
<p>For this reason there should be something wrong with the "not" operator.</p>
<p>but I do not know what exactly!</p>
<p>By the time the rule is generated from an .xls decision table</p>
<p>i really would not express the "otherwise" rule simply using</p>
<p>a sequence of "!=" and "and" operators (which would be a workaround)</p>
<p>.... If I did so the decisiontable would appear "too technical" and </p>
<p>not suitable for a business user.</p>
<p>Have u ever had this issue before?</p>
<p>I have also tried to omit the "null" value from the set but thait is not</p>
<p>the problem.</p>
<p>Please let me know.</p>
<p>Massi</p></font></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><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>