Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2587

Java 8 and Drools 7.5.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.5.0.Final
    • decision tables
    • Hide

      Upgrade your existing drools java job (using a decision table) from Java 7 and drools 5.x to Java 8 and drools 7.5.0

      Show
      Upgrade your existing drools java job (using a decision table) from Java 7 and drools 5.x to Java 8 and drools 7.5.0
    • Migration, Compatibility/Configuration
    • Medium
    • NEW
    • NEW
    • gibran-castillo

    Description

      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

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            gecasti Gibran Castillo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified