Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
02/29/08 19:16:14 (10 months ago)
Author:
tmdugan
Message:

-- dss

* added processPackagePrefix method to Util class

* added defaultPackagePrefix processing to load rule. If a rule token cannot be loaded as passed or from the dynamic rule directory the default package prefix is checked

* fixed an error when checking module class loaders for loaded classes in CompilingClassLoader

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/dss/src/org/openmrs/module/dss/service/DssService.java

    r3386 r3513  
    1313public interface DssService 
    1414{ 
    15         public String runRulesAsString(Patient p,  
    16                         ArrayList<Rule> ruleList); 
     15        public String runRulesAsString(Patient p, ArrayList<Rule> ruleList, 
     16                        String defaultPackagePrefix); 
    1717 
    1818        public String runRulesAsString(Patient p, ArrayList<Rule> ruleList, 
    19                         LogicService logicService); 
     19                        LogicService logicService, String defaultPackagePrefix); 
    2020 
    21         public Result runRule(Patient p, Rule rule); 
     21        public Result runRule(Patient p, Rule rule, String defaultPackagePrefix); 
    2222 
    23         public Result runRule(Patient p, Rule rule, LogicService logicService); 
     23        public Result runRule(Patient p, Rule rule, LogicService logicService, 
     24                        String defaultPackagePrefix); 
    2425 
    25         public ArrayList<Result> runRules(Patient p,ArrayList<Rule> ruleList); 
     26        public ArrayList<Result> runRules(Patient p, ArrayList<Rule> ruleList, 
     27                        String defaultPackagePrefix); 
    2628 
    27         public ArrayList<Result> runRules(Patient p,ArrayList<Rule> ruleList, 
    28                         LogicService logicSvc); 
     29        public ArrayList<Result> runRules(Patient p, ArrayList<Rule> ruleList, 
     30                        LogicService logicSvc, String defaultRulePrefix); 
    2931 
    3032        public Rule getRule(int ruleId) throws APIException; 
     
    4143         
    4244        public void testAOP(); 
    43          
     45 
     46        public void loadRule(String rule, String defaultPackagePrefix) 
     47                        throws Exception; 
     48 
     49        public void loadRule(String rule) throws Exception; 
    4450}