[jboss-jira] [JBoss JIRA] (DROOLS-2587) Java 8 and Drools 7.5.0

Gibran Castillo (JIRA) issues at jboss.org
Thu May 24 11:01:01 EDT 2018


Gibran Castillo created DROOLS-2587:
---------------------------------------

             Summary: Java 8 and Drools 7.5.0
                 Key: DROOLS-2587
                 URL: https://issues.jboss.org/browse/DROOLS-2587
             Project: Drools
          Issue Type: Bug
          Components: decision tables
    Affects Versions: 7.5.0.Final
         Environment: Development
            Reporter: Gibran Castillo
            Assignee: Mario Fusco


I upgraded my Drools 5.x (drools-compiler 5.2.1.Final, drools-decisiontables 5.4.0.Final, and drools-templates 5.4.0.Final; jbpm-flow 5.1.1.Final, jbpm-bmpn2 5.1.1.Final and with their respective dependencies) Java 1.7.0_21 job to drools 7.5.0 and use kie-api/kie-ci and Java 1.8.0_162; I had to do some refactoring because now drools is part of the KIE (Knowledge Is Everything) umbrella, specifically the code below:

    KieServices ks = KieServices.Factory.get();
    KieContainer kc = ks.getKieClasspathContainer();
    KieSession ks = kc.newKieSession("ksession-dtables");  //stateful session
    FactHandle fh = ks.insert(fact);
    ks.fireAllRules();
....

I added the pom.properties file and kmodule.xml file.  The java job builds successfully.  When I run the java job the packages and rules are loaded into the Knowledge Base but only the first rules fire up and then it stops or ends.

This seems to be a bug in the decision table (spreadsheet), it works with Java 7/Drools 5 but not with Java 8/Drools 7





--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list