Package net.fp.rp.drools

Examples of net.fp.rp.drools.SimpleFlowBean


    //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());
  }
View Full Code Here

TOP

Related Classes of net.fp.rp.drools.SimpleFlowBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.