<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"><em>#From row number: 25</em></p>
<p align="left"><em>rule "Otherwise_25"</em></p>
<p align="left"><em></em></p>
<p align="left"><em>no-loop true</em></p>
<p align="left"><em>ruleflow-group "Convert"</em></p>
<p align="left"><em>when</em></p>
<p align="left"><em> cw:ContractWrapper(<a href="http://mycontract.serviceDetail.name">mycontract.serviceDetail.name</a> <strong>not</strong> in ("STRING 1", "STRING 2", "STRING 3", "STRING 4", "STRING 5", null))</em></p>
<p align="left"><em>then</em></p>
<p align="left"><em> ...</em></p>
<p><em>end</em></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">cw1.mycontract.serviceDetail.name</a> = "<em>STRING </em>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">cw2.mycontract.serviceDetail.name</a> = "<em>STRING </em>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>