Package com.dtrules.mapping

Examples of com.dtrules.mapping.Mapping.loadData()


        
         datamap = session.getDataMap(mapping,null);
        
         datamap.loadXML(new FileInputStream(path+"/"+dataset));
        
         mapping.loadData(session, datamap);
     }
   
    
     /**
      * Returns the error if an error is thrown.  Otherwise, a null.
View Full Code Here


       InputStream input = new FileInputStream(path+"/"+dataset);
       if( harnessVersion() < 2){
           Mapping   mapping  = session.getMapping();
           DataMap datamap = session.getDataMap(mapping,null);
           datamap.loadXML(input);
           mapping.loadData(session, datamap);
          
           this.datamap = datamap;
       }else{
         AutoDataMap autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
         autoDataMap.setCurrentGroup("applicationDataload");
View Full Code Here

       
        IRSession      session = rs.newSession();
       
        Mapping        mapping = session.getMapping();
       
        mapping.loadData(session, path+"testfiles/"+"TestCase_001.xml");
       
        session.execute(decisionTable);
   
        printReport(session, System.out);
       
View Full Code Here

        Mapping        mapping = session.getMapping();
       
        // We are going to get our Data from an XML source.  The Mapping file
        // and the XML Data source is all we need to populate the Rules
        // Session.
        mapping.loadData(session, path+"testfiles/"+"TestCase_001.xml");
       
        // We will begin Execution at the main Decision Table for our Rule Set.
        // 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
View Full Code Here

                 } catch (Exception e) {
                   System.out.println("Couldn't write to '"+app.getOutputDirectory()+"job_"+cnt+".xml'");
                 }
             }
            
           mapping.loadData(session, datamap);
          
           // Once the data is loaded, execute the rules.
             session.execute(app.getDecisionTableName());
        
             if(app.trace && (job.getId()%app.save == 0)){
View Full Code Here

                 } catch (Exception e) {
                   System.out.println("Couldn't write to '"+app.getOutputDirectory()+"BP_request_"+cnt+".xml'");
                 }
             }
            
           mapping.loadData(session, datamap);
          
           // Once the data is loaded, execute the rules.
             session.execute(app.getDecisionTableName());            
            
             printReport(threadnum, app, session);
View Full Code Here

       InputStream input = new FileInputStream(path+"/"+dataset);
       if( harnessVersion() < 2){
           Mapping   mapping  = session.getMapping();
           DataMap datamap = session.getDataMap(mapping,null);
           datamap.loadXML(input);
           mapping.loadData(session, datamap);
          
           this.datamap = datamap;
       }else{
         AutoDataMap autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
         autoDataMap.setCurrentGroup("applicationDataload");
View Full Code Here

       InputStream input = new FileInputStream(path+"/"+dataset);
       if( harnessVersion() < 2){
           Mapping   mapping  = session.getMapping();
           DataMap datamap = session.getDataMap(mapping,null);
           datamap.loadXML(input);
           mapping.loadData(session, datamap);
          
           this.datamap = datamap;
       }else{
         AutoDataMap autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
         autoDataMap.setCurrentGroup("applicationDataload");
View Full Code Here

          
           datamap = session.getDataMap(mapping,null);
          
           datamap.loadXML(input);
          
           mapping.loadData(session, datamap);
       }else{
         autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
        
           autoDataMap.setCurrentGroup("applicationDataload");
         autoDataMap.LoadXML(input);
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.