This is a bug in 5.1.1 and earlier. It's been fixed (with other things) for 5.2.<br><br>If you are willing to hack the source of 5.1.1, it's in<br> org.drools.decisiontable.parser.DefaultRuleSheetListener<br><br>
lines 520-540, insert another one like this:<br> <br> } else if ( actionType.type == ActionType.AGENDAGROUP ){<br> this._currentRule.setAgendaGroup( value );<br> }<br><br>BTW, you can check the result of a spreadsheet compilation using:<br>
<br>import org.drools.decisiontable.InputType;<br>import org.drools.decisiontable.SpreadsheetCompiler;<br><br> private static final String dtPath = "/.../....xls";<br> private void testSpreadsheet(){<br> File dtf = new File( dtPath );<br>
InputStream is;<br> try {<br> is = new FileInputStream( dtf );<br> SpreadsheetCompiler ssComp = new SpreadsheetCompiler();<br> String s = ssComp.compile( is, InputType.XLS );<br> System.out.println( "=== Begin generated DRL ===" );<br>
System.out.println( s );<br> System.out.println( "=== End generated DRL ===" );<br> } catch (IOException e) {<br> e.printStackTrace();<br> }<br> }<br><br>-W<br><br><br><div class="gmail_quote">
On 10 February 2011 07:23, Evert Penninckx <span dir="ltr"><<a href="mailto:evert.penninckx@gmail.com">evert.penninckx@gmail.com</a>></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;">
<br>
My decision tables are written in XLS. But since the drools-compiler often<br>
can't say anything useful about compilation problems (eg. "Nullpointer"), I<br>
import the xls in Guvnor to be able to view the source and debug.<br>
<br>
So, when using xls the grouping seems to be ignored.<br>
<br>
<br>
Evert<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-ignored-when-set-in-decision-table-tp2459302p2464176.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-ignored-when-set-in-decision-table-tp2459302p2464176.html</a><br>
Sent from the Drools - User 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>
</font></blockquote></div><br>