Package com.dtrules.session

Examples of com.dtrules.session.IRSession.execute()


            return;
        }
       
        for(int i=0;i<tests.length;i+=2){
            try{
               session.execute(tests[i]);
               String result = state.datapop().stringValue();
               if(tests[i+1].equals(result.trim())){
                   state.debug("test: << "+tests[i]+" >> expected: "+tests[i+1]+" --passed\n");
               }else{
                   state.debug("test: << "+tests[i]+" >> expected: "+tests[i+1]+" result:"+result+" --FAILED\n");
View Full Code Here


       
        Mapping        mapping = session.getMapping();
       
        mapping.loadData(session, path+"testfiles/"+"TestCase_001.xml");
       
        session.execute(decisionTable);
   
        printReport(session, System.out);
       
      }catch(RulesException e){
        // Should any error occur, print out the message.
View Full Code Here

        // Furthermore, we are going to only execute the Decision Tables once.
        // You may, however, interact with the state of the Rules Engine, load
        // more data, and execute any of the Decision Tables as needed.  This
        // would allow one or more Rule Sets to manage the behavior of an
        // application in an on going mannor.
        session.execute(decisionTable);
   
        // Once the Decision Tables have executed, we need to extract the data
        // from the Rules engine.  We will use a modified version of the
        // printReport() method from the SamplesProject2, the Rules Development
        // Project for our application.
View Full Code Here

             }
            
           mapping.loadData(session, datamap);
          
           // Once the data is loaded, execute the rules.
             session.execute(app.getDecisionTableName());
        
             if(app.trace && (job.getId()%app.save == 0)){
                 session.getState().traceEnd();
             }
            
View Full Code Here

             }
            
           mapping.loadData(session, datamap);
          
           // Once the data is loaded, execute the rules.
             session.execute(app.getDecisionTableName());            
            
             printReport(threadnum, app, session);
          
           
         } catch ( Exception ex ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.