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.
-W On 24 August 2011 17:02, FrankVhh <[email protected]> wrote: > Hi, > > Maybe you can put something like the following in the code: > > SpreadsheetCompiler xlsCompiler = new SpreadsheetCompiler(); > String drl = > > xlsCompiler.compile(ResourceFactory.newClassPathResource("Sample.xls").getInputStream(),InputType.XLS); > System.out.println(drl); > > This should enable you to see the generated drl (Syntax not checked, also I > am not entirely certain whether it always works) > > Otherwise, maybe you could post your .xls file. Together with your code, it > shouldn't be to hard to replicate the error. > > Regards, > Frank > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3281195.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
