1Resource dt
2 = ResourceFactory
3 .newClassPathResource("com/baeldung/drools/rules/Discount.xls",
4 getClass());
5
6KieFileSystem kieFileSystem = kieServices.newKieFileSystem().write(dt);
7
1public class Customer {
2 private CustomerType type;
3
4 private int years;
5
6 private int discount;
7
8 // Standard getters and setters
9
10 public enum CustomerType {
11 INDIVIDUAL,
12 BUSINESS;
13 }
14}
15