[rules-users] Agenda-group ignored when set in decision table
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Feb 10 03:37:33 EST 2011
This is a bug in 5.1.1 and earlier. It's been fixed (with other things) for
5.2.
If you are willing to hack the source of 5.1.1, it's in
org.drools.decisiontable.parser.DefaultRuleSheetListener
lines 520-540, insert another one like this:
} else if ( actionType.type == ActionType.AGENDAGROUP ){
this._currentRule.setAgendaGroup( value );
}
BTW, you can check the result of a spreadsheet compilation using:
import org.drools.decisiontable.InputType;
import org.drools.decisiontable.SpreadsheetCompiler;
private static final String dtPath = "/.../....xls";
private void testSpreadsheet(){
File dtf = new File( dtPath );
InputStream is;
try {
is = new FileInputStream( dtf );
SpreadsheetCompiler ssComp = new SpreadsheetCompiler();
String s = ssComp.compile( is, InputType.XLS );
System.out.println( "=== Begin generated DRL ===" );
System.out.println( s );
System.out.println( "=== End generated DRL ===" );
} catch (IOException e) {
e.printStackTrace();
}
}
-W
On 10 February 2011 07:23, Evert Penninckx <evert.penninckx at gmail.com>wrote:
>
> My decision tables are written in XLS. But since the drools-compiler often
> can't say anything useful about compilation problems (eg. "Nullpointer"), I
> import the xls in Guvnor to be able to view the source and debug.
>
> So, when using xls the grouping seems to be ignored.
>
>
> Evert
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-ignored-when-set-in-decision-table-tp2459302p2464176.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110210/c6556463/attachment.html
More information about the rules-users
mailing list