For the conditions where a field is tested for equality with some value, the field name alone is sufficient. So, use [age] rather than [age==]. For other comparison operators, add the operator, and each value is appended, as written in a cell below. For more complicated expressions, use an expression containing $param but make sure to surround it with quotes if the field is of type String.<br>
<br>-W<br><br><br><div class="gmail_quote">On 24 August 2011 17:02, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Maybe you can put something like the following in the code:<br>
<br>
SpreadsheetCompiler xlsCompiler = new SpreadsheetCompiler();<br>
String drl =<br>
xlsCompiler.compile(ResourceFactory.newClassPathResource(&quot;Sample.xls&quot;).getInputStream(),InputType.XLS);<br>
System.out.println(drl);<br>
<br>
This should enable you to see the generated drl (Syntax not checked, also I<br>
am not entirely certain whether it always works)<br>
<br>
Otherwise, maybe you could post your .xls file. Together with your code, it<br>
shouldn&#39;t be to hard to replicate the error.<br>
<br>
Regards,<br>
Frank<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3281195.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3281195.html</a><br>

</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>