Package com.dtrules.session

Examples of com.dtrules.session.RulesDirectory


        xout.closetag();
    }
   
    public static void main(String arg[]) throws Exception {
        String         path     = "C:\\eb\\eb_dev2\\rulesDevelopment\\eb-newyork\\";
        RulesDirectory rd       = new RulesDirectory(path,"DTRules.xml");
        RName          rsName   = RName.getRName("enrollment");
        RuleSet        rs       = rd.getRuleSet(rsName);
       
        try {
            Coverage c = new Coverage(rs,path+"ny-enrollment\\testfiles\\output\\");
            c.compute();
            c.printReport(System.out);
View Full Code Here


    if(pathtoDTrules != null){
      file = pathtoDTrules;
    }
   
    try {
      rd = new RulesDirectory("",file);
     
    } catch (Exception e) {
      e.printStackTrace();
    }   
   
View Full Code Here

     */
    public static void main(String args[]){
        String path = "C:\\eclipse\\workspace\\EB_POC\\new_york_EB\\xml\\";
        String file = path + "DTRules.xml";   
   
        RulesDirectory    rd      = new RulesDirectory("",file);
        RuleSet           rs      = rd.getRuleSet(RName.getRName("ebdemo"));
        RSession          session;
        try {
            OutputStream  out     = new FileOutputStream("c:\\temp\\dt.xml");
                          session = new RSession(rs);
            RulesAdminService admin   = new RulesAdminService(session, rd);
View Full Code Here

   * @param args
   */
    public static void main(String[] args) {
      try {
       
        RulesDirectory rd      = new RulesDirectory(
            path+"repository/",      
            "DTRules.xml");
       
        RuleSet        rs      = rd.getRuleSet("SampleProject2");
       
        IRSession      session = rs.newSession();
       
        Mapping        mapping = session.getMapping();
       
View Full Code Here

        //
        // Normally, the configuration file is named DTRules.xml.  But
        // this is just a convention, and its name is supplied when creating
        // the Rules Directory.
       
        RulesDirectory rd      = new RulesDirectory(
            path+"repository/",      
            "DTRules.xml");
       
        // The RuleSet is built by loading the XML for the project.  This is
        // done only once, and the results cached by the RulesDirectory.
        RuleSet        rs      = rd.getRuleSet("SampleProject2");
       
        // A Session creates an instance of a Rules Set.  The Rules Engine is
        // factored so that all the Rules Engine State is built off of the
        // DTState object in the Session.  The Rules Engine is Thread safe,
        // so multiple threads can have sessions that run against the same
View Full Code Here

    if(pathtoDTrules != null){
      file = pathtoDTrules;
    }
   
    try {
      rulesDirectory = new RulesDirectory("",file);
     
    } catch (Exception e) {
      e.printStackTrace();
    }   
   
View Full Code Here

     */
    public static void main(String args[]){
        String path = "C:\\eclipse\\workspace\\EB_POC\\new_york_EB\\xml\\";
        String file = path + "DTRules.xml";   
   
        RulesDirectory    rd      = new RulesDirectory("",file);
        RuleSet           rs      = rd.getRuleSet(RName.getRName("ebdemo"));
        RSession          session;
        try {
            OutputStream  out     = new FileOutputStream("c:\\temp\\dt.xml");
                          session = new RSession(rs);
            RulesAdminService admin   = new RulesAdminService(session, rd);
View Full Code Here

      // A Rule set is a set of decision tables defined in XML,
      // the Entity Description Dictionary (the EDD, or schema) assumed by
      // those tables, and
      // A Mapping file that maps data into this EDD.

      rd = new RulesDirectory(path, getRulesDirectoryFile());

      // Select a particular rule set and create a session to load the
      // data and evaluate
      // that data against the rules within this ruleset.
      ruleset  = getRuleSetName();
View Full Code Here

      // A Rule set is a set of decision tables defined in XML,
      // the Entity Description Dictionary (the EDD, or schema) assumed by
      // those tables, and
      // A Mapping file that maps data into this EDD.

      rd = new RulesDirectory(path, getRulesDirectoryFile());

      // Select a particular rule set and create a session to load the
      // data and evaluate
      // that data against the rules within this ruleset.
      ruleset  = getRuleSetName();
View Full Code Here

    /**
     * We reset the Rules Directory after we have modified the XML used to
     * define the Rules Directory.
     */
    public void reset (){
        RulesDirectory rd = new RulesDirectory(path,rulesDirectoryXML);
        this.ruleSet = rd.getRuleSet(ruleset);
    }
View Full Code Here

TOP

Related Classes of com.dtrules.session.RulesDirectory

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.