<html><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div><span style="font-size: 10pt;">Hi,</span><br></div><div style="font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv2543164393"><div><div style="color: rgb(0, 0, 0); font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255);"><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;
 background-color: transparent;" class="yiv2543164393"><span style="font-size:10pt;" class="yiv2543164393"><br class="yiv2543164393" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">I am implementing rules engine into my project, I have been referring the many technical resources about jboss drools.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">I did implement some set of rules which are much more needed for my project.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue
 Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">All of a sudden after I placed all the rules in the spreadsheet(.xls) file, and executed it, it shows me strange exceptions like this below.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">It was reading the xls file,
 creating .drl file, that also we can see, but it is showing the errors.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">Can anyone help me please on this, I am very much tried, could not able to resolve.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393">I need a clue how to do that.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="yiv2543164393"><br
 class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">This
 is my class, where I will have conditional parameters</div><div class="yiv2543164393" style="">package com.dfs.dsa.rules;</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">public class QuarterlyBonusRules {</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>private Double attendancePercentage = null;</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public Double getAttendancePercentage() {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>return attendancePercentage;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div
 class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public void setAttendancePercentage(Double attendancePercentage) {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>this.attendancePercentage = attendancePercentage;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public int getMinorCollisionDays() {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>return minorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div
 class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public void setMinorCollisionDays(int minorCollisionDays) {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>this.minorCollisionDays = minorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public int getMajorCollisionDays() {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>return majorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393"
 style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public void setMajorCollisionDays(int majorCollisionDays) {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>this.majorCollisionDays = majorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>private int minorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>private int majorCollisionDays;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>private int bonusAmount = 11;</div><div
 class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>private boolean violationAssessed = false;</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public int getBonusAmount() {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>return bonusAmount;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public void setBonusAmount(int bonusAmount) {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>this.bonusAmount = bonusAmount;</div><div class="yiv2543164393"
 style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public boolean isViolationAssessed() {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>return violationAssessed;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>public void setViolationAssessed(boolean violationAssessed) {</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>this.violationAssessed = violationAssessed;</div><div class="yiv2543164393" style=""><span
 class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Then I do have one test class to execute the rules</div><div class="yiv2543164393" style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'Helvetica Neue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;">package com.dfs.dsa.rules;</div><div
 class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;">import java.io.BufferedWriter;</div><div class="yiv2543164393" style="background-color:transparent;">import java.io.File;</div><div class="yiv2543164393" style="background-color:transparent;">import java.io.FileInputStream;</div><div class="yiv2543164393" style="background-color:transparent;">import java.io.FileNotFoundException;</div><div class="yiv2543164393" style="
background-color:transparent;">import java.io.FileWriter;</div><div class="yiv2543164393" style="background-color:transparent;">import java.io.IOException;</div><div class="yiv2543164393" style="background-color:transparent;">import java.io.InputStream;</div><div class="yiv2543164393" style="background-color:transparent;">import java.util.Collection;</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.KnowledgeBase;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.KnowledgeBaseFactory;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.builder.KnowledgeBuilder;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.builder.KnowledgeBuilderFactory;</div><div class="yiv2543164393"
 style="background-color:transparent;">import org.drools.builder.ResourceType;</div><div class="yiv2543164393" style="background-color:transparent;">import
 org.drools.decisiontable.InputType;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.decisiontable.SpreadsheetCompiler;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.event.rule.DebugAgendaEventListener;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.event.rule.DebugWorkingMemoryEventListener;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.io.ResourceFactory;</div><div class="yiv2543164393" style="background-color:transparent;">import org.drools.runtime.StatefulKnowledgeSession;</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;">/**</div><div class="yiv2543164393" style="background-color:transparent;">&nbsp;* This class will create a drl file from excel sheet and then
 execute the</div><div class="yiv2543164393" style="background-color:transparent;">&nbsp;* rules.</div><div class="yiv2543164393" style="background-color:transparent;">&nbsp;*/</div><div class="yiv2543164393" style="background-color:transparent;">@SuppressWarnings("restriction")</div><div class="yiv2543164393" style="background-color:transparent;">public class QBResult {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        </span>public static final void main(final String[] args) {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Create knowledge builder</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory</div><div class="yiv2543164393"
 style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                                </span>.newKnowledgeBuilder();</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Create drl file from excel sheet</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>InputStream is = null;</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>try {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>is = new FileInputStream("c:/myeclipse/DroolsProject/src/QuarterlyBonusRules.xls");</div><div class="yiv2543164393"
 style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>} catch (FileNotFoundException e) {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>e.printStackTrace();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        
        </span>}</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Create compiler class instance</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>SpreadsheetCompiler sc = new SpreadsheetCompiler();</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Compile the excel to generate the (.drl) file</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>StringBuffer drl = new StringBuffer(sc.compile(is, InputType.XLS));</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div
 class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Insert dialect value into drl file</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>drl.insert(drl.indexOf("DROOLS") + 40, "dialect \"mvel\"" + "\n");</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Check the generated drl file</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>System.out.println("Generate DRL file is showing below–: ");</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        
        </span>System.out.println(drl);</div><div class="yiv2543164393" style="background-color:transparent;"><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// writing string into a drl file</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>try {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>BufferedWriter out = new BufferedWriter(new FileWriter(</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                                        </span>"QuarterlyBonusRules.drl"));</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>out.write(drl.toString());</div><div
 class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>out.close();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>} catch (IOException e) {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>System.out.println("Exception ");</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        
        </span>}</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// Wait before using the drl file in the next section.</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>try {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>Thread.sleep(100);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>} catch (InterruptedException e) {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>e.printStackTrace();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>}</div><div
 class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>kbuilder.add(ResourceFactory.newFileResource(new File(</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                                </span>"QuarterlyBonusRules.drl")), ResourceType.DRL);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>if (kbuilder.hasErrors()) {</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>System.out.println("kbuilder has errors");</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                        </span>System.out.println(kbuilder.getErrors().toString());</div><div class="yiv2543164393" style="background-color:transparent;"><span
 class="yiv2543164393" style="white-space:pre;">                </span>}</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>// get the compiled packages (which are serializable)</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>final
 Collection pkgs = kbuilder.getKnowledgePackages();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>final KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>kbase.addKnowledgePackages(pkgs);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>final StatefulKnowledgeSession ksession = kbase</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                                </span>.newStatefulKnowledgeSession();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>ksession.addEventListener(new DebugAgendaEventListener());</div><div
 class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>ksession.addEventListener(new
 DebugWorkingMemoryEventListener());</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>QuarterlyBonusRules qbr = new QuarterlyBonusRules();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span></div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>qbr.setAttendancePercentage(new Double(0.75));</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>qbr.setMinorCollisionDays(0);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>qbr.setMajorCollisionDays(0);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393"
 style="white-space:pre;">                </span>qbr.setViolationAssessed(false);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        
        </span>ksession.insert(qbr);</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>ksession.fireAllRules();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>ksession.dispose();</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">                </span>System.out.println(qbr.getBonusAmount());</div><div class="yiv2543164393" style="background-color:transparent;"><span class="yiv2543164393" style="white-space:pre;">        </span>}</div><div class="yiv2543164393" style="background-color:transparent;">}</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">AFter executing the above program, here I am getting the error, and not able to rectify it</div><div class="yiv2543164393"
 style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><div class="yiv2543164393" style="">SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".</div><div class="yiv2543164393" style="">SLF4J: Defaulting to no-operation (NOP) logger implementation</div><div class="yiv2543164393" style="">SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.</div><div class="yiv2543164393" style="">Warning: &nbsp;Cannot read name ranges for Excel_BuiltIn__FilterDatabase_1 - setting to empty</div><div class="yiv2543164393" style="">Warning: &nbsp;Cell at D21 not present - adding a blank</div><div class="yiv2543164393" style="">Generate DRL file is showing below–:&nbsp;</div><div class="yiv2543164393" style="">package DROOLS;</div><div class="yiv2543164393" style="">//generated from Decision Table</div><div class="yiv2543164393" style="">dialect "mvel"</div><div class="yiv2543164393" style="">import
 com.dfs.dsa.rules.QuarterlyBonusRules;</div><div class="yiv2543164393" style="">// rule values at B11, header at B6</div><div class="yiv2543164393" style="">rule "1"</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>when</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        
        </span>qbr:QuarterlyBonusRules(attendancePercentage&gt;=0.75)</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>(minorCollisionDays&gt;=0 &amp;&amp; minorCollisionDays&lt;=0);</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>(majorCollisionDays&gt;=0 &amp;&amp; majorCollisionDays&lt;=0);</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>violationAssessed==false;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>then</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>qbr.setBonusAmount(150);</div><div class="yiv2543164393" style="">end</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">// rule values at B12, header at
 B6</div><div class="yiv2543164393" style="">rule "2"</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>when</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        
        </span>qbr:QuarterlyBonusRules(attendancePercentage&gt;=0.56)</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>(minorCollisionDays&gt;=0 &amp;&amp; minorCollisionDays&lt;=90);</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>(majorCollisionDays&gt;=0 &amp;&amp; majorCollisionDays&lt;=90);</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>violationAssessed==true;</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">        </span>then</div><div class="yiv2543164393" style=""><span class="yiv2543164393" style="white-space:pre;">                </span>qbr.setBonusAmount(0);</div><div class="yiv2543164393" style="">end</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div
 class="yiv2543164393" style="">kbuilder has errors</div><div class="yiv2543164393" style="">[9,21]: [ERR 102] Line 9:21 mismatched input '&gt;=' in rule "1"</div><div class="yiv2543164393" style="">[20,21]: [ERR 102] Line 20:21 mismatched
 input '&gt;=' in rule "2"</div><div class="yiv2543164393" style="">[0,0]: Parser returned a null Package</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div><div class="yiv2543164393" style="">==&gt;[ObjectInsertedEventImpl: getFactHandle()=[fact 0:1:2144330803:2144330803:1:DEFAULT:com.dfs.dsa.rules.QuarterlyBonusRules@7fcfe433], getObject()=com.dfs.dsa.rules.QuarterlyBonusRules@7fcfe433, getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@23efdc4, getPropagationContext()=PropagationContextImpl [activeActivations=0, dormantActivations=0, entryPoint=EntryPoint::DEFAULT, factHandle=[fact 0:1:2144330803:2144330803:1:DEFAULT:com.dfs.dsa.rules.QuarterlyBonusRules@7fcfe433], leftTuple=null, originOffset=-1, propagationNumber=4, rule=null, type=0]]</div><div class="yiv2543164393" style="">11</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style=""></div></div><div class="yiv2543164393"
 style="">Note: the number 11 is the value, it has printed, that I set to the bonus amount, but it should not print
 that value, it should pring 150.</div><div class="yiv2543164393" style=""><br></div><div class="yiv2543164393" style="">I am here attaching the spread sheet, where I have added all the rules in it.</div><div class="yiv2543164393" style=""><br></div><div class="yiv2543164393" style="">I appreciate you a lot for the help</div><div class="yiv2543164393" style=""><br class="yiv2543164393" style="">Thanks &amp; Regards,<br class="yiv2543164393" style=""><span id="yiv2543164393cursor" class="yiv2543164393" style="">Venkata.</span></div></div></div></div><br><br></div> </div> </div>  </div></body></html>