<p dir="ltr">Providing a XLS exhibiting he problem would be beneficial. A unit test in drools-decisiontables even more so.</p>
<p dir="ltr">From what I gather you&#39;re saying if the XLS contains no definitions,  I.e. only keywords, Drools is generating a single empty rule. </p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 30 Oct 2013 22:14, &quot;srtatz&quot; &lt;<a href="mailto:srtatz@live.com">srtatz@live.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have an xls file with the appropriate header lines to make the xls a Drools<br>
Decision Table that I provide to my users.  I validate the content/data they<br>
enter, but do allow it to be &quot;blank&quot;, that is, no user data, just the Drools<br>
Decision Table key words, conditions, actions, etc.<br>
<br>
When using the stateful knowledge session built using the Drools Decision<br>
Table, I insert an object implementing AgendaEventListener and override the<br>
afterActivationEvent method to record on the object which row was hit.  I<br>
found that it is saying it hit the first row in the Drools Decision Table<br>
after the header information.  But that corresponds to a blank line, since<br>
the table is blank.  It seems to have generated a blank drl rule behind the<br>
scenes with no conditions (so it always succeeds) and no actions.  Since I<br>
have logic based on whether or not a rule was successfully selected, this<br>
selection of a non-existent rule breaks my code.<br>
<br>
The user won&#39;t really be using a blank spreadsheet, but I need to cover the<br>
situation. The validation is pretty set in stone right now so I don&#39;t want<br>
to force the user to have some data.<br>
<br>
Can anyone suggest an easy way to stop it from matching the blank line?<br>
<br>
Thanks,<br>
<br>
Steve<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Decision-Table-with-no-rules-matches-blank-rule-tp4026560.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Decision-Table-with-no-rules-matches-blank-rule-tp4026560.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</blockquote></div>