java - Drools - Not all actions are executed when rule fires -
at moment, have large decision table lot of conditions/actions. decision table has worked until have added new action. not seem executing.
as i'm unable show whole file, extract of important columns (be aware there more conditions):
below actions defined on "orig" object:
the following fields updated through setter:
- prm_lib01
- prm_lib09
- prm_lib10
however, prm_lib18 not being updated. if switch around action of prm_lib10 , prm_lib18, it's column of prm_lib10 gets updated.
when debug through code, see rulebuildcontext holds setters first rule:
so based on this, expect execute setprm_lib18("gc") well, not happen.
so i've tried see class file drools generates see whether seems fine, i'm unable view generated bytecode.
i'm @ loss why doesn't work. have clue or how debug actual calling of actions maybe see why it's not executed?
this quite unlikely. how ascertain action isn't executed? there rule might modify prm_lib18?
for quick debugging, add action column containing printout of modified object - @ least modified fields.
if still haven't clue, try code , report full/truncated essentials output.
private void testspreadsheet(){ file dtf = new file( dtpath ); inputstream is; try { = 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) { // todo auto-generated catch block e.printstacktrace(); } }
Comments
Post a Comment