//Setup Rules Table
setupDecisionTable();
// Setup values from Execution Context
SimpleFlowBean testBean = new SimpleFlowBean();
testBean.setInput1(""+executionContext.getVariable(INPUT_ONE_NAME));
testBean.setInput2(""+executionContext.getVariable(INPUT_TWO_NAME));
testBean.setInput3(""+executionContext.getVariable(INPUT_THREE_NAME));
testBean.setInput4(""+executionContext.getVariable(INPUT_FOUR_NAME));
testBean.setInput5(""+executionContext.getVariable(INPUT_FIVE_NAME));
// Apply the Rules to this bean
log.debug ("pre Decision Table");
try {
testBean=(SimpleFlowBean)dtLoader.executeDecisionTable(testBean,false);
} catch (RpException rp){
log.warn("RPException",rp);
//todo - set output to end
}
log.debug ("post Decision Table");
//Use the decision to decide where to transition to
log.debug("output:"+testBean.getOutput());
executionContext.setVariable(OUTPUT_TRANSITION_NAME,testBean.getOutput());
executionContext.leaveNode(""+testBean.getOutput());
}