<div> </div>
<div>Sorry Guys,</div>
<div> </div>
<div>It was my fault!</div>
<div> </div>
<div>The "<strong>not in</strong>" sugar operator DOES WORK!!!</div>
<div> </div>
<div>I had a problem with the decision table values...</div>
<div> </div>
<div>So...never mind. No JIRAs for it.</div>
<div> </div>
<div>Thank You anyway.</div>
<div> </div>
<div>Massi<br><br></div>
<div class="gmail_quote">On Wed, Apr 9, 2008 at 2:49 PM, Edson Tirelli <<a href="mailto:tirelli@post.com">tirelli@post.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><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" target="_blank">mmquelo@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div class="Wj3C7c">
<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></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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/" target="_blank">www.jboss.com</a> <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>