if(Verbose()){
datamap.print(new FileOutputStream(getOutputDirectory()+root+"_datamap.xml"));
entityfile = new FileOutputStream(getOutputDirectory()+root+"_entities_before.xml");
RArray entitystack = new RArray(0,false,false);
for(int i=0; i< session.getState().edepth()-2; i++){
entitystack.add(session.getState().entityfetch(i));
}
session.printEntityReport(new XMLPrinter(entityfile), false, session.getState(), "entitystack", entitystack);
}
// Once the data is loaded, execute the rules.
RulesException ex = null;
try{
executeDecisionTables(session);
}catch(RulesException e){
ex = e;
}
// Then if asked, dump the entities.
if(Verbose()){
entityfile = new FileOutputStream(getOutputDirectory()+root+"_entities_after.xml");
RArray entitystack = new RArray(0,false,false);
for(int i=0; i< session.getState().edepth()-2; i++){
entitystack.add(session.getState().entityfetch(i));
}
session.printEntityReport(new XMLPrinter(entityfile), false, session.getState(), "entitystack", entitystack);
}
if(ex!=null)throw ex;