1 package org.kuali.ole.deliver.drools.rules;
2
3 import org.apache.commons.io.FileUtils;
4 import org.apache.commons.lang3.StringUtils;
5 import org.kuali.ole.deliver.bo.drools.DroolsRuleBo;
6 import org.kuali.ole.deliver.drools.DroolsConstants;
7
8 import java.io.File;
9 import java.io.IOException;
10 import java.net.URISyntaxException;
11 import java.net.URL;
12 import java.util.HashMap;
13 import java.util.Map;
14
15
16
17
18 public class IsActiveRuleFormulator extends RuleFormulatorUtil implements RuleFormulator {
19
20 GeneralChecksDroolFileGenerator droolFileGenerator;
21
22 public GeneralChecksDroolFileGenerator getDroolFileGenerator() {
23 return droolFileGenerator;
24 }
25
26 public void setDroolFileGenerator(GeneralChecksDroolFileGenerator droolFileGenerator) {
27 this.droolFileGenerator = droolFileGenerator;
28 }
29
30 @Override
31 public Map formulateRuleMap(DroolsRuleBo droolsRuleBo) {
32 return super.formulateRule(droolsRuleBo);
33 }
34
35 @Override
36 public String formulateRules(DroolsRuleBo droolsRuleBo) {
37 return "";
38 }
39
40 @Override
41 protected String getTemplateFileName() {
42 return "general-checks/active-indicator.txt";
43 }
44
45 @Override
46 protected void processExtraRules(DroolsRuleBo droolsRuleBo, Map map) {
47
48 }
49
50
51 @Override
52 public boolean isInterested(String value) {
53 return value.equals(DroolsConstants.GENERAL_CHECK_RULE_TYPE.IS_ACTIVE);
54 }
55
56 @Override
57 public boolean isInterestedForParameters(String value) {
58 return false;
59 }
60
61 @Override
62 public boolean isInterestedForThenCustomRules(String value) {
63 return false;
64 }
65
66
67 }