Details

      Description

      When modifying the insurance sample RuleFlowTest.java class to use sequential mode with stateless session and calling a ruleflow from a rule, I receive the following error:

      java.lang.ClassCastException: org.drools.common.ArrayAgendaGroup incompatible with org.drools.common.BinaryHeapQueueAgendaGroup

      Here is more detail:

      Inside RuleFlowTest.java ...

      ...

      RuleBase ruleBase = readRule();

      StatelessSession statelessSession = ruleBase.newStatelessSession();
      StatelessSessionResult statelessSessionResult = statelessSession.executeWithResults(facts);

      Inside readRule() I have ...

      ...

      RuleBaseConfiguration conf = new RuleBaseConfiguration();
      conf.setSequentialAgenda(SequentialAgenda.SEQUENTIAL); //I also tried without this line
      conf.setSequential(true);

      Inside rule (drl) I have:

      rule "startRuleFlow"
      salience 1000
      when
      then
      drools.getWorkingMemory().startProcess("process.name");
      end

      The error occurs in the RHS above.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                KrisVerlaenen Kris Verlaenen
                Reporter:
                petersam Peter Samouelian
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: