Q:

decision tree drools using spring boot

public class Customer {
    private CustomerType type;
 
    private int years;
 
    private int discount;
 
    // Standard getters and setters
 
    public enum CustomerType {
        INDIVIDUAL,
        BUSINESS;
    }
}
0
KieServices kieServices = KieServices.Factory.get();
0
Resource dt 
  = ResourceFactory
    .newClassPathResource("com/baeldung/drools/rules/Discount.xls",
      getClass());
 
KieFileSystem kieFileSystem = kieServices.newKieFileSystem().write(dt);
0

New to Communities?

Join the community